about setenv :whistle sorry my mistake yes of course "setenv" should be used to set an environment variable
I mixed it up with the syntaxc of bourne shell, stupid.
So we can poke around with the environment variable.
Thanks for the full printenv output, more clear now
The usbstart command clears gpio pin that apparently enables boot via usb but it is not clear what is required on the usb stick to let it boot
Lets focus for the moment on "bootcmd"
Commonly used to boot the device, is says "run nexus_boot". A long and complicated command, which need the specifice seagate setup with nexus. Not of use for us. We have to go another route.
If we set bootcmd to for instant to "run fvdw-sl" and put a environment variabel "fvdw-sl" like this the boot would as on current lacie box.
- Code: Select all
setenv bootcmd 'disk 0x800000 0:6 ; setenv bootargs console=ttyS0,115200 root=/dev/sda7 rw ; bootm 0x2000000;'
However it could be that bootcmd is reset by u-boot to the default at each boot. Which is the case on lacie nas.
On the Lacie's it could prevented by setting a special environment variabel "LaBackdoor" to yes
- Code: Select all
setenv LaBackdoor yes
saveenv
To re-enable "normal" boot
- Code: Select all
sentenv LaBackdoor
saveenv
This something you could try. It should not harm u-boot.
PS an alternative is not changing bootcmd but booting the nas from the uboot prompt, the disadvantage of that is that you will need to repeat it at every boot
In the meantime I will look if compiling a kernel is easy for this device, we could use the one in rescue partition in case compile fails