Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

uboot NSA310 - probably erase uboot (23 replies)

$
0
0
Hi,

I think I kill my uboot when I try test latest changes in LEDE:
I follow the procedure:
https://github.com/lede-project/source/pull/656#issuecomment-274945142

I compile the uboot:
~/openwrt/LEDEnsa310 $ ls -alh bin/targets/kirkwood/generic/u-boot-nsa310/
total 1,5M

508K Jan 25 21:28 u-boot.bin
508K Jan 25 21:28 u-boot.img
508K Jan 25 21:28 u-boot.kwb

and take u-boot.bin
then on console:
nvironment size: 2960/131068 bytes
NSA310> usb reset
resetting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
NSA310> fatload usb 0 0x1000000 uboot.bin
reading uboot.bin
519520 bytes read in 41 ms (12.1 MiB/s)
NSA310> nand write 0x1000000 0x00000 0x100000

NAND write: device 0 offset 0x0, size 0x100000
NAND write to offset 0 failed -5
 0 bytes written: ERROR
NSA310>

SA310> mtdparts

device nand0 <orion_nand>, # parts = 9
 #: name                size            offset          mask_flags
 0: uboot               0x00100000      0x00000000      0
 1: uboot_env           0x00080000      0x00100000      0
 2: key_store           0x00080000      0x00180000      0
 3: info                0x00080000      0x00200000      0
 4: etc                 0x00a00000      0x00280000      0
 5: kernel_1            0x00a00000      0x00c80000      0
 6: rootfs1             0x02fc0000      0x01680000      0
 7: kernel_2            0x00a00000      0x04640000      0
 8: rootfs2             0x02fc0000      0x05040000      0

active partition: nand0,2 - (key_store) 0x00080000 @ 0x00180000

defaults:
mtdids  : none
mtdparts: none
NSA310>
NSA310>
NSA310>
NSA310>
NSA310>
NSA310> reset
resetting ...


And then lost communication forever :-(

Is there anything I can do ?


---
Mod edit: use code tags

Viewing all articles
Browse latest Browse all 3247

Trending Articles