Debian on Mirabox (Armada 370) November 11, 2017 10:01AM |
Registered: 9 years ago Posts: 429 |
BootROM 1.08 Booting from SPI flash DDR3 Training Sequence - Ver 4.4.0 DDR3 Training Sequence - Ended Successfully Status = MV_OK BootROM: Image checksum verification PASSED __ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** LOADER ** U-Boot 2009.08 (Jul 15 2015 - 21:57:33)Marvell version: 1.1.2 NQ U-Boot Addressing: Code: 00600000:006AFFF0 BSS: 006F7240 Stack: 0x5fff70 PageTable: 0x8e0000 Heap address: 0x900000:0xe00000 Board: DB-88F6710-BP SoC: MV6710 A1 CPU: Marvell PJ4B v7 UP (Rev 1) LE CPU @ 1200Mhz, L2 @ 600Mhz DDR @ 600Mhz, TClock @ 200Mhz DDR 16Bit Width, FastPath Memory Access PEX 0: Detected No Link. PEX 1: Root Complex Interface, Detected Link X1 DRAM: 1 GB CS 0: base 0x00000000 size 512 MB CS 1: base 0x20000000 size 512 MB Addresses 14M - 0M are saved for the U-Boot usage. SF: Detected MX25L1605D with page size 256, total 2097152 bytes FPU not initialized USB 0: Host Mode USB 1: Host Mode Modules/Interfaces Detected: RGMII0 Phy RGMII1 Phy PEX0 (Lane 0) SATA0 (Lane 2) SATA1 (Lane 3) MMC: MRVL_MMC: 0 Net: egiga0 [PRIME], egiga1 flag = ff Hit any key to stop autoboot: 0 Marvell>> printenv bootdelay=3 baudrate=115200 loads_echo=0 ipaddr=10.4.50.165 serverip=10.4.50.5 rootpath=/mnt/ARM_FS/ netmask=255.255.255.0 console=console=ttyS0,115200 sata_delay_reset=0 enaExtDisk=no MALLOC_len=5 ethprime=egiga0 bootargs_root=root=/dev/nfs rw bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none image_name=uImage load_addr=0x02000000 standalone=fsload $load_addr $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm $load_addr; ethmtu=1500 eth1mtu=1500 mvNetConfig=mv_net_config=1,(XX:XX:XX:XX:XX:XX,0:1:2:3:4),mtu=1500 usb0Mode=host usb1Mode=host usbActive=2 yuk_ethaddr=XX:XX:XX:XX:XX:XX netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no eeeEnable=no ethact=egiga0 bootcmd=usb start; fatload usb 0 0x6400000 uimage_3.2.36.v9; bootm 0x6400000 ethaddr=XX:XX:XX:XX:XX:XX eth1addr=XX:XX:XX:XX:XX:XX stdin=serial stdout=serial stderr=serial enaMonExt=no pexMode=RC setL2CacheWT=no sata_dma_mode=yes netbsd_en=no vxworks_en=no realboot=mmcinfo;fatload mmc 0 0x6400000 uImage; bootm 0x6400000 realboot1=run realboot disaMvPnp=no enaAutoRecovery=yes pcieTune=no bootargs=console=ttyS0,115200 root=/dev/mtdblock0 rw ip=10.4.50.165:10.4.50.5:10.4.50.254:255.255.255.0:KW40:eth0:none Environment size: 1255/65532 bytes
Re: Bodhi Debian on Mirabox November 11, 2017 04:16PM |
Admin Registered: 13 years ago Posts: 19,010 |
help fdt
load_initrd_addr=0x1100000 load_uimage_addr=0x800000
Quote
bootm 0x6400000
setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial' setenv bootcmd 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x1100000 /boot/uInitrd; bootm 0x800000 0x1100000'
Re: Bodhi Debian on Mirabox November 12, 2017 04:19AM |
Registered: 9 years ago Posts: 429 |
> help > fdt >
Marvell>> help ? - alias for 'help' SatR - Sample At Reset sub-system autoscr - DEPRECATED - use "source" command instead base - print or set address offset bdinfo - print Board Info structure boot - boot default, i.e., run 'bootcmd' bootd - boot default, i.e., run 'bootcmd' bootelf - Boot from an ELF image in memory bootm - boot application image from memory bootp - boot image via network using BOOTP/TFTP protocol bootvx - Boot vxWorks from an ELF image bubt - bubt - Burn an image on the Boot SPI Flash. chpart - change active partition cmp - memory compare cmpm - cmpm - Compare Memory coninfo - print console devices and information cp - memory copy cpumap - cpumap - Display CPU memory mapping settings. crc32 - checksum calculation date - get/set/reset date & time ddrPhyRead- ddrPhyRead - Read DDR PHY register ddrPhyWrite- ddrPhyWrite - Write DDR PHY register dhcp - boot image via network using DHCP/TFTP protocol diskboot- diskboot- boot from IDE device dma - dma - Perform DMA using the XOR engine echo - echo args to console eeprom - EEPROM sub-system exit - exit script ext2load- load binary file from a Ext2 filesystem ext2ls - list files in a directory (default /) fatinfo - print information about filesystem fatload - load binary file from a dos filesystem fatls - list files in a directory (default /) fi - fi - Find value in the memory. fsinfo - print information about filesystems fsload - load binary file from a filesystem image g - g - start application at cached address 'addr'(default addr 0x40000) go - start application at address 'addr' help - print online help i2c - I2C sub-system ide - ide - IDE sub-system iminfo - print header information for application image imxtract- extract a part of a multi-image ir - ir - reading and changing MV internal register values. itest - return true/false on integer compare loadb - load binary file over serial line (kermit mode) loads - load S-Record file over serial line loady - load binary file over serial line (ymodem mode) loop - infinite loop on address range ls - list files in a directory (default /) map - map - Diasplay address decode windows md - memory display me - me - PCI master enable mm - memory modify (auto-incrementing address) mmc - MMC sub system mmcinfo - display MMC info mp - mp - map PCI BAR mtdparts- define flash/nand partitions mtest - simple RAM read/write test mw - memory write (fill) nfs - boot image via network using NFS protocol nm - memory modify (constant address) pci - list and access PCI Configuration Space pciePhyRead- phyRead - Read PCI-E Phy register pciePhyWrite- pciePhyWrite - Write PCI-E Phy register phyRead - phyRead - Read Phy register phyWrite- phyWrite - Write Phy register ping - send ICMP ECHO_REQUEST to network host printenv- print environment variables rarpboot- boot image via network using RARP/TFTP protocol rcvr - rcvr - Satrt recovery process (Distress Beacon with TFTP server) reset - Perform RESET of the CPU resetenv- resetenv - earse environment sector to reset all variables to default. run - run commands in an environment variable saveenv - save environment variables to persistent storage se - se - PCI Slave enable setenv - set environment variables sf - SPI flash sub-system sg - sg - scanning the PHYs status showvar - print local hushshell variables sleep - delay execution for some time source - run script from memory sp - sp - Scan PCI bus. sspi - SPI utility commands switchCountersRead- switchCntPrint - Read switch port counters. switchPhyRegRead- - Read switch register switchPhyRegWrite- - Write switch register switchRegRead- switchRegRead - Read switch register switchRegWrite- switchRegWrite - Write switch register temp - temp - Display the device temprature. test - minimal test like /bin/sh tftpboot- boot image via network using TFTP protocol training- training - prints the results of the DDR3 Training. ts_report- ts_report - report touch screen cooridate ts_test - ts_test - test touch screen ubi - ubi commands ubifsload- load file from an UBIFS filesystem ubifsls - list files in a directory ubifsmount- mount UBIFS volume usb - USB sub-system usbboot - boot from USB device version - print monitor version whoAmI - - reading CPU ID
Re: Bodhi Debian on Mirabox November 12, 2017 05:01AM |
Admin Registered: 13 years ago Posts: 19,010 |
cd <USB rootfs drive mountpoint> ls -l boot/dts/*mira*
-rw-r--r-- 1 root root 13202 Jul 29 22:47 boot/dts/armada-370-mirabox.dtb
tar -xjf linux-4.10.9-mvebu-tld-1-bodhi.tar.bz2 tar tf linux-dtb-4.12.4-mvebu-tld-1.tar | grep mira
dts/armada-370-mirabox.dtb
Re: Bodhi Debian on Mirabox November 12, 2017 09:54AM |
Registered: 9 years ago Posts: 429 |
Re: Bodhi Debian on Mirabox November 12, 2017 01:44PM |
Registered: 10 years ago Posts: 226 |
Usage: mkimage -l image -l ==> list image header information mkimage [-x] -A arch -O os -T type -C comp -a addr -e ep -n name -d data_file[:data_file...] image -A ==> set architecture to 'arch' -O ==> set operating system to 'os' -T ==> set image type to 'type' -C ==> set compression type 'comp' -a ==> set load address to 'addr' (hex) -e ==> set entry point to 'ep' (hex) -n ==> set image name to 'name' <----------------------- -d ==> use image data from 'datafile' -x ==> set XIP (execute in place) mkimage [-D dtc_options] [-f fit-image.its|-F] fit-image -D => set options for device tree compiler -f => input filename for FIT source Signing / verified boot not supported (CONFIG_FIT_SIGNATURE undefined) mkimage -V ==> print version information and exit root@debian:/boot# strings uImage | grep tld Linux-4.8.3-kirkwood-tld-1
Re: Bodhi Debian on Mirabox November 12, 2017 04:26PM |
Admin Registered: 13 years ago Posts: 19,010 |
Generate the uImage with DTB embedded inside: cd /media/sdb1/boot cp -a zImage-4.12.1-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-goflexnet.dtb >> zImage.fdt mv uImage uImage.orig mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt uImage sync
cd /media/sdb1/boot cp -a zImage-4.12.4-mvebu-tld-1 zImage.fdt cat dts/armada-370-mirabox.dtb >> zImage.fdt mv uImage uImage.orig mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.4-mvebu-tld-1 -d zImage.fdt uImage sync
Re: Bodhi Debian on Mirabox March 03, 2019 11:22PM |
Admin Registered: 13 years ago Posts: 19,010 |
U-Boot 2009.08 (Jul 15 2015 - 21:57:33)Marvell version: 1.1.2 NQ
Re: Bodhi Debian on Mirabox March 04, 2019 10:33AM |
Registered: 9 years ago Posts: 429 |
Re: Bodhi Debian on Mirabox March 04, 2019 03:41PM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: Bodhi Debian on Mirabox March 04, 2019 06:44PM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: Bodhi Debian on Mirabox March 04, 2019 09:00PM |
Registered: 9 years ago Posts: 429 |
Re: Bodhi Debian on Mirabox March 04, 2019 09:31PM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: Bodhi Debian on Mirabox March 05, 2019 12:17AM |
Admin Registered: 13 years ago Posts: 19,010 |
root@dreamplug-debian:~# uname -a Linux dreamplug-debian 3.4.2 #6 Wed Nov 14 09:11:34 EST 2012 armv7l GNU/Linux
Re: Bodhi Debian on Mirabox March 05, 2019 06:08AM |
Admin Registered: 13 years ago Posts: 19,010 |
root@dreamplug-debian:/media/usb2# ubiformat /dev/mtd2 -f rootfs-debian6.0-gti-mirabox-v5-0-1-120924.img ubiformat: mtd2 (nand), size 1065353216 bytes (1016.0 MiB), 2032 eraseblocks of 524288 bytes (512.0 KiB), min. I/O size 4096 bytes libscan: scanning eraseblock 2031 -- 100 % complete ubiformat: 2024 eraseblocks have valid erase counter, mean value is 12 ubiformat: bad eraseblocks: 2024, 2025, 2026, 2027, 2028, 2029, 2030, 2031 ubiformat: flashing eraseblock 727 -- 100 % complete ubiformat: formatting eraseblock 2031 -- 100 % complete
UBI error: ubi_read_volume_table: the layout volume was not found UBI error: ubi_init: cannot attach mtd2 0 - Base 0x00000000 , Size = 0x20000000.
UBI error: vtbl_check: bad CRC at record 23: 0xf185979f, not 0xffffffff UBI error: vtbl_check: bad CRC at record 23: 0xf185979f, not 0xffffffff UBI error: process_lvol: both volume tables are corrupted UBI error: ubi_init: cannot attach mtd2
Re: Bodhi Debian on Mirabox March 05, 2019 08:07AM |
Registered: 9 years ago Posts: 429 |
> UBI error: ubi_read_volume_table: the layout > volume was not found > UBI error: ubi_init: cannot attach mtd2 > 0 - Base 0x00000000 , Size = 0x20000000. >>
Re: Bodhi Debian on Mirabox March 05, 2019 04:40PM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: Bodhi Debian on Mirabox March 06, 2019 04:08AM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: Bodhi Debian on Mirabox March 06, 2019 05:28AM |
Registered: 9 years ago Posts: 429 |
Re: Bodhi Debian on Mirabox March 06, 2019 05:37AM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: Bodhi Debian on Mirabox March 14, 2019 03:28AM |
Admin Registered: 13 years ago Posts: 19,010 |
root@Mirabox:~# myinfo Mirabox Globalscale Mirabox Linux version 4.20.6-mvebu-mirabox-tld-12 (root@tldDebianVM) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04)) #6 SMP PREEMPT Wed Mar 13 14:43:16 PDT 2019 Debian 9.4 console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=pxa3xx_nand-0:4M(u-boot),4M(linux),-(filesystem) earlyprintk=serial uboot_version=U-Boot 2009.08 (Sep 16 2012 - 22:50:06)Marvell version: 1.1.2 NQ --- System Stats: /dev/sda: Generic STORAGE DEVICE: S.M.A.R.T. not available /dev/sdb: Generic STORAGE DEVICE: S.M.A.R.T. not available
Debian on Mirabox -- Installation March 14, 2019 05:52PM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: Debian on Mirabox -- Installation March 17, 2019 05:56PM |
Admin Registered: 13 years ago Posts: 19,010 |
Mirabox Fix
Re: Debian on Mirabox -- Installation June 22, 2019 09:53PM |
root@debian:/mnt# ubiformat /dev/mtd2 --flash-image=rootfs-debian6.0-gti-mirabox-v5-0-1-120924.img ubiformat: mtd2 (nand), size 1065353216 bytes (1016.0 MiB), 2032 eraseblocks of 524288 bytes (512.0 KiB), min. I/O size 4096 bytes libscan: scanning eraseblock 2031 -- 100 % complete ubiformat: 2024 eraseblocks are supposedly empty ubiformat: 8 bad eraseblocks found, numbers: 2024, 2025, 2026, 2027, 2028, 2029, 2030, 2031 ubiformat: flashing eraseblock 727 -- 100 % complete ubiformat: formatting eraseblock 2031 -- 100 % complete
Re: Debian on Mirabox -- Installation June 22, 2019 10:54PM |
Registered: 7 years ago Posts: 373 |
Re: Debian on Mirabox -- Installation June 22, 2019 10:54PM |
Admin Registered: 13 years ago Posts: 19,010 |
Quote
Stock bootloader (2009.08 Marvell) limits the kernel uImage size to 4 MB, and it also uses a non-standard address for the device, so it needs to be configured using a few old settings in the kernel for debugging with UART. This has some commonality with a few other Armda 370 boxes in that they also use this old boot loader: U-Boot 2009.08 (Sep 16 2012 - 22:50:06)Marvell version: 1.1.2 NQ.
Re: Debian on Mirabox -- Installation June 22, 2019 11:28PM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: Debian on Mirabox (Armada 370) June 27, 2019 07:41PM |
Registered: 7 years ago Posts: 373 |
Re: Debian on Mirabox (Armada 370) June 27, 2019 08:43PM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: Debian on Mirabox (Armada 370) June 27, 2019 09:21PM |
Registered: 7 years ago Posts: 373 |