Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 12, 2015 12:56AM |
Registered: 11 years ago Posts: 36 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 12, 2015 02:44AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 12, 2015 03:12AM |
Registered: 11 years ago Posts: 36 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 12, 2015 04:08AM |
Admin Registered: 13 years ago Posts: 18,997 |
Kristof
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 16, 2015 12:48PM |
Quote
/i-data/fe8bf781/admin # flash_erase /dev/mtd0 0 4
-sh: flash_erase: not found
Quote
/i-data/fe8bf781/admin # sh flash_erase /dev/mtd0 0 4
flash_erase: line 1: syntax error: unexpected word (expecting ")")
Quote
/i-data/fe8bf781/admin # flash_eraseall /dev/mtd0 0 4
Erasing 128 Kibyte @ e0000 -- 87 % complete.
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 16, 2015 04:12PM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
sh flash_erase
./flash_erase /dev/mtd0 0 4
Quote
flash_eraseall /dev/mtd0 0 4
uname -a cat /proc/mtd cat /etc/fw_env.config
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 16, 2015 11:48PM |
Registered: 9 years ago Posts: 18 |
Linux NSA325-v2 2.6.31.8 #2 Fri May 15 12:20:01 CST 2015 armv5tel GNU/Linux
dev: size erasesize name mtd0: 00100000 00020000 "uboot" mtd1: 00080000 00020000 "uboot_env" mtd2: 00080000 00020000 "key_store" mtd3: 00080000 00020000 "info" mtd4: 00a00000 00020000 "etc" mtd5: 00a00000 00020000 "kernel_1" mtd6: 02fc0000 00020000 "rootfs1" mtd7: 00a00000 00020000 "kernel_2" mtd8: 02fc0000 00020000 "rootfs2"
# Configuration file for fw_(printenv/saveenv) utility. # Up to two entries are valid, in this case the redundand # environment sector is assumed present. # Notice, that the \"Number of sectors\" is ignored on NOR. # MTD device name Device offset Env. size Flash sector size Number of sectors # NAND example /dev/mtd1 0x0000 0x20000 0x20000 4
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 17, 2015 01:22AM |
Admin Registered: 13 years ago Posts: 18,997 |
./flash_erase /dev/mtd0 0 4
Erase Total 4 Units Performing Flash Erase of length 131072 at offset 0x60000 done
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 17, 2015 10:54AM |
Registered: 9 years ago Posts: 18 |
/i-data/fe8bf781/admin # ./flash_erase /dev/mtd0 0 4 Erase Total 4 Units Performing Flash Erase of length 131072 at offset 0x60000 done
/i-data/fe8bf781/admin/tmp # nandwrite /dev/mtd0 uboot.2014.07-tld-4.nsa325.mtd0.kwb Writing data to block 0 Writing data to block 20000 Writing data to block 40000 Writing data to block 60000
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 17, 2015 03:18PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 17, 2015 03:40PM |
Registered: 9 years ago Posts: 18 |
Writing data to block 0 at offset 0x0 Writing data to block 1 at offset 0x20000 Writing data to block 2 at offset 0x40000 Writing data to block 3 at offset 0x60000
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 17, 2015 03:56PM |
Registered: 9 years ago Posts: 18 |
/i-data/fe8bf781/admin # ./flash_erase /dev/mtd0 0xc0000 1 Erase Total 1 Units Performing Flash Erase of length 131072 at offset 0xc0000 doneBut the second I receive the following output when doing this command:
/i-data/fe8bf781/admin/tmp # nandwrite -s 786432 /dev/mtd0 uboot.2014.07-tld-2.environment.imgoutput:
Writing data to block c0000
Writing data to block 6 at offset 0xc0000
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 17, 2015 04:24PM |
Admin Registered: 13 years ago Posts: 18,997 |
> Writing data to block c0000 >>
> Writing data to block 6 at offset 0xc0000 >
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 19, 2015 06:14AM |
Registered: 13 years ago Posts: 37 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 19, 2015 06:35AM |
Admin Registered: 13 years ago Posts: 18,997 |
fw_setenv mtdparts 'mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)'If it shows ext3 here:
fw_printenv rootfstype
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 19, 2015 07:48AM |
Registered: 13 years ago Posts: 37 |
(Re)start USB...^M USB0: USB EHCI 1.00^M scanning bus 0 for devices... 4 USB Device(s) found^M scanning usb for storage devices... 2 Storage Device(s) found^M ** File not found /boot/uImage **^M ** File not found /boot/uInitrd **^M
setenv usb_root /dev/sda1 setenv usb_load_uimage 'ext2load usb $device 0x800000 /uImage' setenv usb_load_uinitrd 'ext2load usb $device 0x1100000 /uInitrd'
setenv usb_root /dev/sda2 setenv usb_load_uimage 'ext2load usb $device 0x800000 /boot/uImage' setenv usb_load_uinitrd 'ext2load usb $device 0x1100000 /boot/uInitrd' setenv rootfstype ext4 saveenv bootand
setenv usb_root /dev/sda2 setenv usb_load_uimage 'ext2load usb /dev/sda1 0x800000 /uImage' setenv usb_load_uinitrd 'ext2load usb /dev/sda1 0x1100000 /uInitrd' setenv rootfstype ext4 saveenv boot
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 19, 2015 03:41PM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
Updated 24 Feb 2015:
This rootfs is the first Debian jessie rootfs in my Kirkwood kernel/rootfs release series, and to keep in sync with kernel Linux-3.18.5-kirkwood-tld-1.
...
1. Format a new USB drive with a single Ext3 partition, and label it rootfs. Note: if your existing uBoot env for rootfs type is ext2, then you might want to keep it consistent and use Ext2 USB drive. It will work with Ext3 drive without problem, though.
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 23, 2015 06:44PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 27, 2015 07:52AM |
Registered: 12 years ago Posts: 28 |
U-Boot 2014.07-tld-3 (Mar 31 2015 - 16:56:13) Pogo E02 gcc (Debian 4.9.1-19) 4.9.1 GNU ld (GNU Binutils for Debian) 2.25 Hit any key to stop autoboot: 0 (Re)start USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found Unknown command 'mmc' - try 'help' Unknown command 'ide' - try 'help' Partition Map for USB device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 3860480 18fa4960-01 83 loading envs from usb 0 ... ** File not found /boot/uEnv.txt ** Unknown command 'mmc' - try 'help' Unknown command 'ide' - try 'help' (Re)start USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found 4120976 bytes read in 350 ms (11.2 MiB/s) ** File not found /boot/uInitrd ** ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-4.1.6-1-ARCH Created: 2015-08-17 8:10:56 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4120912 Bytes = 3.9 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK Starting kernel ...
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) baudrate=115200 bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot; bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot; bootdelay=10 console=ttyS0,115200 device=0:1 ethact=egiga0 if_netconsole=ping $serverip led_error=orange blinking led_exit=green off led_init=green blinking mainlineLinux=yes mmc_boot=mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi mmc_init=mmc rescan mmc_load_uimage=ext2load mmc $device 0x800000 /boot/uImage mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd mmc_root=/dev/mmcblk0p1 mtdids=nand0=orion_nand partition=nand0,2 rootdelay=10 rootfstype=ext3 sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi sata_init=ide reset sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd sata_root=/dev/sda1 set_bootargs_mmc=setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi usb_init=usb start usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd usb_root=/dev/sda1 arcNumber=3542 machid=dd6 ethaddr=00:25:**** devices=usb mmc ide bootcmd=run bootcmd_uenv; run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi uenv_import=echo importing envs ...; env import -t 0x810000 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_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_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi 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 ipaddr=192.168.1.4 serverip=192.168.1.10
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi bootcmd=run bootcmd_uenv; run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; run pogo_bootcmd; reset
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 27, 2015 08:34AM |
Registered: 12 years ago Posts: 28 |
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
usb_root=LABLE=ROOTFSboot usb driver's partition lable is ROOTFS,
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 August 27, 2015 11:50AM |
Admin Registered: 13 years ago Posts: 18,997 |
> usb_root=LABLE=ROOTFS >> boot usb driver's partition lable is ROOTFS,
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S August 30, 2015 05:15PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S September 10, 2015 02:51PM |
Registered: 9 years ago Posts: 118 |
[ 1.982828] Bad eraseblock 100 at 0x000000c80000 [ 1.992505] Bad eraseblock 200 at 0x000001900000
Be sure there is no bad block in the first 1M of your NAND (check dmesg).
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S September 10, 2015 05:26PM |
Admin Registered: 13 years ago Posts: 18,997 |
> [ 1.982828] Bad eraseblock 100 at > 0x000000c80000 > [ 1.992505] Bad eraseblock 200 at > 0x000001900000 >>
> Be sure there is no bad block in the first 1M of > your NAND (check dmesg).
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S September 13, 2015 10:55AM |
Registered: 9 years ago Posts: 118 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S September 18, 2015 04:04AM |
Registered: 9 years ago Posts: 298 |
arcNumber=4495 baudrate=115200 board_dtb=kirkwood-nsa325.dtb bootcmd=run bootcmd_uenv; run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset bootcmd_mmc=run mmc_init; run mmc_bootargs; run mmc_boot bootcmd_sata=run sata_init; run sata_bootargs; run sata_boot; bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootcmd_usb=run usb_init; run usb_bootargs; run usb_boot; bootdelay=3 console=ttyS0,115200 device=0:1 ethact=egiga0 ethaddr=<removed for this post, it's real in my envs> if_netconsole=ping $serverip init=/sbin/init ipaddr=192.168.0.231 led_error=orange blinking led_exit=green off led_init=green blinking mainlineLinux=yes mmc_boot=mw 0x800000 0 1; run mmc_load_dtb; run mmc_load_uimage; if run mmc_load_uinitrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi mmc_bootargs=setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$mmc_rootfstype $mtdparts init=$init mmc_init=mmc rescan mmc_load_dtb=ext4load mmc $mmc_partition 0x1c00000 /boot/dts/$board_dtb mmc_load_uimage=ext4load mmc $mmc_partition 0x800000 /boot/uImage mmc_load_uinitrd=ext4load mmc $mmc_partition 0x1100000 /boot/uInitrd mmc_partition=0:1 mmc_root=LABEL=rootfs mmc_rootfstype=ext4 mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) partition=nand0,2 preboot_nc=run if_netconsole start_netconsole rootdelay=10 rootfstype=ext4 sata_boot=mw 0x800000 0 1; run sata_load_dtb; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi sata_bootargs=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$sata_rootfstype $mtdparts init=$init sata_init=ide reset sata_load_dtb=ext4load ide $sata_partition 0x1c00000 /boot/dts/$board_dtb sata_load_uimage=ext4load ide $sata_partition 0x800000 /boot/uImage sata_load_uinitrd=ext4load ide $sata_partition 0x1100000 /boot/uInitrd sata_partition=0:1 sata_root=LABEL=rootfs sata_rootfstype=ext4 serverip=192.168.0.220 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_import=echo importing envs ...; env import -t 0x810000 uenv_load=usb start; mmc rescan; ide reset; setenv uenv_loaded 0; for devtype in usb mmc ide; do for disknum in 0; do run uenv_read_disk; done; done uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi 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 usb_boot=mw 0x800000 0 1; run usb_load_dtb; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi usb_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$usb_rootfstype $mtdparts init=$init usb_init=usb start usb_load_dtb=ext4load usb $usb_partition 0x1c00000 /boot/dts/$board_dtb usb_load_uimage=ext4load usb $usb_partition 0x800000 /boot/uImage usb_load_uinitrd=ext4load usb $usb_partition 0x1100000 /boot/uInitrd usb_partition=0:1 usb_root=LABEL=rootfs usb_rootfstype=ext4
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S September 19, 2015 02:08AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S September 19, 2015 07:32AM |
Registered: 9 years ago Posts: 298 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S September 19, 2015 02:36PM |
Admin Registered: 13 years ago Posts: 18,997 |
./mkenvimage -s 131072 -o uboot.environment.img uboot.environment
Quote
uboot.2014.07-tld-2.environment (the content of the default envs in text format)