Help with Docstar 2017.07 U-Boot Kirkwood installation July 01, 2018 11:22AM |
Registered: 5 years ago Posts: 6 |
rescue:~# cat /etc/rescue.version 20110217Now, I've got to here.
rescue:~# dmesg | grep -i 'bad' [ 0.676623] Scanning device for bad blocks [ 0.717547] Bad eraseblock 992 at 0x000007c00000 [ 0.757542] Bad eraseblock 1946 at 0x00000f340000 [ 0.913360] UBI: number of bad PEBs: 0 [ 0.945511] UBI: number of PEBs reserved for bad PEB handling: 2 rescue:~#
Quote
2. Make sure ethaddr is set in uBoot env. It must be set before rebooting the system. However, if you plan to flash the default envs image in step 8 (Flashing default u-boot envs image), then no need to worry about it now. It can be set after you've booted in to Linux. The MAC address will be set to a valid randomly generated local address.
rescue:~# cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000 rescue:~# cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00400000 00020000 "uImage" mtd2: 02000000 00020000 "rootfs" mtd3: 0db00000 00020000 "data" rescue:~# fw_printenv ethact=egiga0 bootdelay=3 baudrate=115200 mainlineLinux=yes console=ttyS0,115200 led_init=green blinking led_exit=green off led_error=orange blinking mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) mtdids=nand0=orion_nand partition=nand0,2 stdin=serial stdout=serial stderr=serial rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi force_rescue=0 force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi ubifs_mtd=3 ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done usb_scan_list=1 2 3 4 usb_scan_1=usb=0:1 dev=sda1 usb_scan_2=usb=1:1 dev=sdb1 usb_scan_3=usb=2:1 dev=sdc1 usb_scan_4=usb=3:1 dev=sdd1 usb_init=run usb_scan usb_device=0:1 usb_root=/dev/sda1 usb_rootfstype=ext2 usb_rootdelay=10 usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset ethaddr=00:10:RE:DA:CT:ED #don't know if I need to hide this but, in case serverip=192.168.1.101 ipaddr=192.168.1.166 if_netconsole=ping $serverip start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; preboot=run if_netconsole start_netconsole arcNumber=2998 rescue_installed=1 rescue:~#
Re: Help with Docstar 2017.07 U-Boot Kirkwood installation July 01, 2018 05:11PM |
Admin Registered: 13 years ago Posts: 18,574 |
> rescue:~# dmesg | grep -i 'bad' > [ 0.676623] Scanning device for bad blocks > [ 0.717547] Bad eraseblock 992 at > 0x000007c00000 > [ 0.757542] Bad eraseblock 1946 at > 0x00000f340000 > [ 0.913360] UBI: number of bad PEBs: 0 > [ 0.945511] UBI: number of PEBs reserved for > bad PEB handling: 2 > rescue:~# >>
>Quote
2. Make sure ethaddr is set in uBoot env.
> It must be set before rebooting the system.
> However, if you plan to flash the default envs
> image in step 8 (Flashing default u-boot envs
> image), then no need to worry about it now. It can
> be set after you've booted in to Linux. The MAC
> address will be set to a valid randomly generated
> local address.
> rescue:~# cat /etc/fw_env.config > # MTD device name Device offset Env. size > Flash sector size Number of sectors > /dev/mtd0 0xc0000 0x20000 0x20000 > rescue:~# cat /proc/mtd > dev: size erasesize name > mtd0: 00100000 00020000 "u-boot" > mtd1: 00400000 00020000 "uImage" > mtd2: 02000000 00020000 "rootfs" > mtd3: 0db00000 00020000 "data" > rescue:~# fw_printenv > ethact=egiga0 > bootdelay=3 > baudrate=115200 > mainlineLinux=yes > console=ttyS0,115200 > led_init=green blinking > led_exit=green off > led_error=orange blinking > mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) > mtdids=nand0=orion_nand > partition=nand0,2 > stdin=serial > stdout=serial > stderr=serial > rescue_set_bootargs=setenv bootargs > console=$console ubi.mtd=2 root=ubi0:rootfs ro > rootfstype=ubifs $mtdparts $rescue_custom_params > rescue_bootcmd=if test $rescue_installed -eq 1; > then run rescue_set_bootargs; nand read.e 0x800000 > 0x100000 0x400000; bootm 0x800000; else run > pogo_bootcmd; fi > pogo_bootcmd=if fsload uboot-original-mtd0.kwb; > then go 0x800200; fi > force_rescue=0 > force_rescue_bootcmd=if test $force_rescue -eq 1 > || ext2load usb 0:1 0x1700000 /rescueme 1 || > fatload usb 0:1 0x1700000 /rescueme.txt 1; then > run rescue_bootcmd; fi > ubifs_mtd=3 > ubifs_set_bootargs=setenv bootargs > console=$console ubi.mtd=$ubifs_mtd > root=ubi0:rootfs rootfstype=ubifs $mtdparts > $ubifs_custom_params > ubifs_bootcmd=run ubifs_set_bootargs; if ubi part > data && ubifsmount rootfs && ubifsload 0x800000 > /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; > then bootm 0x800000 0x1100000; fi > usb_scan=usb_scan_done=0;for scan in > $usb_scan_list; do run usb_scan_$scan; if test > $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 > /boot/uImage 1; then usb_scan_done=1; echo "Found > bootable drive on usb $usb"; setenv usb_device > $usb; setenv usb_root /dev/$dev; fi; done > usb_scan_list=1 2 3 4 > usb_scan_1=usb=0:1 dev=sda1 > usb_scan_2=usb=1:1 dev=sdb1 > usb_scan_3=usb=2:1 dev=sdc1 > usb_scan_4=usb=3:1 dev=sdd1 > usb_init=run usb_scan > usb_device=0:1 > usb_root=/dev/sda1 > usb_rootfstype=ext2 > usb_rootdelay=10 > usb_set_bootargs=setenv bootargs console=$console > root=$usb_root rootdelay=$usb_rootdelay > rootfstype=$usb_rootfstype $mtdparts > $usb_custom_params > usb_bootcmd=run usb_init; run usb_set_bootargs; > run usb_boot > usb_boot=mw 0x800000 0 1; ext2load usb $usb_device > 0x800000 /boot/uImage; if ext2load usb $usb_device > 0x1100000 /boot/uInitrd; then bootm 0x800000 > 0x1100000; else bootm 0x800000; fi > bootcmd=usb start; run force_rescue_bootcmd; run > ubifs_bootcmd; run usb_bootcmd; usb stop; run > rescue_bootcmd; run pogo_bootcmd; reset > ethaddr=00:10:RE:DA:CT:ED #don't know if I need > to hide this but, in case > serverip=192.168.1.101 > ipaddr=192.168.1.166 > if_netconsole=ping $serverip > start_netconsole=setenv ncip $serverip; setenv > bootdelay 10; setenv stdin nc; setenv stdout nc; > setenv stderr nc; version; > preboot=run if_netconsole start_netconsole > arcNumber=2998 > rescue_installed=1 > rescue:~# >
Re: Help with Docstar 2017.07 U-Boot Kirkwood installation July 01, 2018 06:37PM |
Registered: 5 years ago Posts: 6 |
Re: Help with Docstar 2017.07 U-Boot Kirkwood installation July 03, 2018 11:37AM |
Registered: 5 years ago Posts: 6 |
rescue:~# cat /etc/rescue.version 20110217
[root@z68x rootfs]# tar -xjf /home/rolf/info/computer/dockstar/Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 [root@z68x rootfs]# ls bin/ dev/ home/ lost+found/ mnt/ proc/ run/ srv/ tmp/ var/ boot/ etc/ lib/ media/ opt/ root/ sbin/ sys/ usr/ [root@z68x rootfs]# cat etc/fstab # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> LABEL=rootfs / ext3 noatime,errors=remount-ro 0 1 tmpfs /tmp tmpfs defaults 0 0 [root@z68x rootfs]# cd boot/ [root@z68x boot]# ls config-4.12.1-kirkwood-tld-1 uImage dts/ uInitrd initrd.img-4.12.1-kirkwood-tld-1 vmlinuz-4.12.1-kirkwood-tld-1 linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb zImage-4.12.1-kirkwood-tld-1* System.map-4.12.1-kirkwood-tld-1 [root@z68x boot]# cp -a zImage-4.12.1-kirkwood-tld-1 zImage.fdt ... [root@z68x boot]# cat dts/kirkwood-dockstar.dtb >> zImage.fdt [root@z68x boot]# mv uImage uImage.orig [root@z68x boot]# 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 Image Name: Linux-4.12.1-kirkwood-tld-1 Created: Tue Jul 3 08:44:24 2018 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3831924 Bytes = 3742.11 kB = 3.65 MB Load Address: 00008000 Entry Point: 00008000 [root@z68x boot]# sync [root@z68x boot]# exit exit [rolf@z68x ~]$
rescue:~# mount /dev/sda1 /mnt/ rescue:~# ls /mnt bin etc lost+found opt run sys var boot home media proc sbin tmp dev lib mnt root srv usr rescue:~# cd /mnt/ rescue:/mnt# mkdir rescue-backup rescue:/mnt# cd rescue-backup/ rescue:/mnt/rescue-backup# nanddump --noecc --omitoob -l 0x80000 -f mtd0 /dev/mtd0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00000000 and ending at 0x00080000... rescue:/mnt/rescue-backup# ls -l total 516 -rw------- 1 root root 524288 Jul 3 16:03 mtd0 rescue:/mnt/rescue-backup# fw_printenv > current_envs.txt rescue:/mnt/rescue-backup# cat current_envs.txt ethact=egiga0 bootdelay=3 baudrate=115200 mainlineLinux=yes console=ttyS0,115200 led_init=green blinking led_exit=green off led_error=orange blinking mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) mtdids=nand0=orion_nand partition=nand0,2 stdin=serial stdout=serial stderr=serial rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi force_rescue=0 force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi ubifs_mtd=3 ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done usb_scan_list=1 2 3 4 usb_scan_1=usb=0:1 dev=sda1 usb_scan_2=usb=1:1 dev=sdb1 usb_scan_3=usb=2:1 dev=sdc1 usb_scan_4=usb=3:1 dev=sdd1 usb_init=run usb_scan usb_device=0:1 usb_root=/dev/sda1 usb_rootfstype=ext2 usb_rootdelay=10 usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset ethaddr=00:10:... serverip=192.168.1.101 ipaddr=192.168.1.166 if_netconsole=ping $serverip start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; preboot=run if_netconsole start_netconsole arcNumber=2998 rescue_installed=1 rescue:/mnt/rescue-backup# cat /etc/rescue.version 20110217 rescue:/mnt/rescue-backup#
[rolf@z68x ~]$ nc -l -u -p 6666 U-Boot 2011.12 (Feb 12 2012 - 21:33:07) Seagate FreeAgent DockStar arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1 GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709 Hit any key to stop autoboot: 0 (Re)start USB... USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... cannot reset port 1!? 2 USB Device(s) found scanning bus for storage devices... 0 Storage Device(s) found ** Block device usb 0 not supported ** Invalid boot device ** Creating 1 MTD partitions on "nand0": 0x000002500000-0x000010000000 : "mtd=3" UBI: attaching mtd1 to ubi0 UBI: physical eraseblock size: 131072 bytes (128 KiB) UBI: logical eraseblock size: 129024 bytes UBI: smallest flash I/O unit: 2048 UBI: sub-page size: 512 UBI: VID header offset: 512 (aligned 512) UBI: data offset: 2048 UBI: attached mtd1 to ubi0 UBI: MTD device name: "mtd=3" UBI: MTD device size: 219 MiB UBI: number of good PEBs: 1750 UBI: number of bad PEBs: 2 UBI: max. allowed volumes: 128 UBI: wear-leveling threshold: 4096 UBI: number of internal volumes: 1 UBI: number of user volumes: 0 UBI: available PEBs: 1729 UBI: total number of reserved PEBs: 21 UBI: number of PEBs reserved for bad PEB handling: 17 UBI: max/mean erase counter: 1/1 UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19 Error reading superblock on volume 'ubi:rootfs'! ** Block device usb 0 not supported ** Block device usb 1 not supported ** Block device usb 2 not supported ** Block device usb 3 not supported ** Block device usb 0 not supported ** Block device usb 0 not supported Wrong Image Format for bootm command ERROR: can't get kernel image! stopping USB.. NAND read: device 0 offset 0x100000, size 0x400000 4194304 bytes read: OK ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-2.6.32.18-dockstar Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3236180 Bytes = 3.1 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ...
Re: Help with Docstar 2017.07 U-Boot Kirkwood installation July 03, 2018 02:17PM |
Admin Registered: 13 years ago Posts: 18,574 |
Quote
IIANM, I have performed the initial steps to save a copy of the older rescue mtd0 and environment settlings. I believe that, as before, I need to flash uBoot 2017.07 from a Debian boot and all I have is the updated wheezy on NSA-320. Before I go forward with this plan, I wanted to check in for some oversight, please.
Quote
2 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
Re: Help with Docstar 2017.07 U-Boot Kirkwood installation July 03, 2018 10:06PM |
Registered: 5 years ago Posts: 6 |
fw_setenv ethaddr 'xx:xx:xx:xx:xx:xx'but
root@debian-kirkwood-wide:/tmp# fw_setenv ethaddr '00:10:75:1A:48:72' Can't overwrite "ethaddr" root@debian-kirkwood-wide:/tmp# fw_printenv | grep ethaddr ethaddr=52:3b:20:9c:11:51 root@debian-kirkwood-wide:/tmp# fw_setenv ethaddr 00:10:75:1A:48:72 Can't overwrite "ethaddr" root@debian-kirkwood-wide:/tmp#so
root@debian-kirkwood-wide:/tmp# fw_printenv bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb device=0:1 devices=usb ide mmc disks=0 1 2 3 ethact=egiga0 ethaddr=52:3b:20:9c:11:51 if_netconsole=ping $serverip ipaddr=192.168.0.231 led_error=orange blinking led_exit=green off led_init=green blinking dtb_file=/boot/dts/kirkwood-pogo_e02.dtb load_dtb_addr=0x1c00000 load_initrd_addr=0x1100000 load_uimage_addr=0x800000 load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage mainlineLinux=yes mtdids=nand0=orion_nand partition=nand0,2 preboot_nc=run if_netconsole start_netconsole scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done serverip=192.168.0.220 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done; uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi usb_ready_retry=15 arcNumber=2998 mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) root@debian-kirkwood-wide:/tmp#Thanks.
Re: Help with Docstar 2017.07 U-Boot Kirkwood installation July 03, 2018 11:03PM |
Registered: 5 years ago Posts: 6 |
root@debian-kirkwood-wide:/tmp# fw_printenv bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb device=0:1 devices=usb ide mmc disks=0 1 2 3 ethact=egiga0 ethaddr=52:3b:20:9c:11:51 if_netconsole=ping $serverip led_error=orange blinking led_exit=green off led_init=green blinking dtb_file=/boot/dts/kirkwood-pogo_e02.dtb load_dtb_addr=0x1c00000 load_initrd_addr=0x1100000 load_uimage_addr=0x800000 load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage mainlineLinux=yes mtdids=nand0=orion_nand partition=nand0,2 scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done; uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi usb_ready_retry=15 arcNumber=2998 mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) serverip=192.168.1.101 ipaddr=192.168.1.166 preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi preboot=run preboot_nc root@debian-kirkwood-wide:/tmp#
/tmp# uname -r 3.3.2-kirkwood-dg
Quote
In the special case when you are booting with a non-FDT kernel 3.16 or earlier, or if you have appended the DTB to uImage. Remove the DTB file env. If not sure please post question before continuing.
dtb_file=/boot/dts/kirkwood-pogo_e02.dtb
Re: Help with Docstar 2017.07 U-Boot Kirkwood installation July 04, 2018 12:50AM |
Admin Registered: 13 years ago Posts: 18,574 |
dtb_file=/boot/dts/kirkwood-dockstar.dtb
Re: Help with Docstar 2017.07 U-Boot Kirkwood installation July 04, 2018 11:16AM |
Registered: 5 years ago Posts: 6 |
root@debian:~# date Wed Jul 4 09:05:45 PDT 2018
Re: Help with Docstar 2017.07 U-Boot Kirkwood installation July 04, 2018 04:25PM |
Admin Registered: 13 years ago Posts: 18,574 |