Been a little while that I had time to work on it again, but yes; it is there :
Code: Select all
root@raspberrypi:/var/log# ls /srv/nfs/toon/boot/ -lah
total 4.7M
drwxrwxr-x 2 root root 4.0K Jan 25 2019 .
drwxr-xr-x 16 root root 4.0K Jun 16 17:48 ..
-rw-r--r-- 1 root root 2.3M Jul 5 2015 uImage-2.6.36-R07-h11
-rw-r--r-- 1 root root 2.4M Jan 25 2019 uImage-nfs
root@raspberrypi:/var/log#
I can mount the nfs from kali or the rpi itself without a problem and browse the directories.
When I start the recovery script :
The fourth line below is strange I think,
DEBUG:recovery:serveripp= 192.168.2.87
also that a little further below changes to serverip=192.168.2.1
Code: Select all
########### Pi toonrecovery debug output ################
root@raspberrypi:/home/pi/Downloads/ToonRecovery# python . --jtag-available --serverip 192.168.2.87 --gatewayip 192.168.2.254 --output-level DEBUG
[....]
DEBUG:recovery:manufacture_date=2014/09
DEBUG:recovery:ethaddr=00:0F:11:03:A8:D4
DEBUG:recovery:addmisc=setenv bootargs ${bootargs} mem=${mem} lpj=999424
DEBUG:recovery:serveripp= 192.168.2.87 <<<<<<<<<<<<
DEBUG:recovery:bootargs=root=/dev/nfs rw nfsroot=192.168.2.87:/srv/nfs/toon,nfsvers=3,nolock,tcp console=ttymxc0,115200 loglevel=8 mtdparts=mxc_nand:512K@0x00100000(u-boot-env)ro,1536K(splash-image),3M(kernel),3M(kernel-backup),119M(rootfs) ip=192.168.2.3:192.168.2.87:192.168.2.254:255.255.255.0:toon::off panic=0
DEBUG:recovery:gatewayip=192.168.2.254
DEBUG:recovery:netmask=255.255.255.0
DEBUG:recovery:ipaddr=192.168.2.3
DEBUG:recovery:serverip=192.168.2.1 <<<<<<<<<<<<
DEBUG:recovery:U-Boot>
INFO:recovery:Received valid IP address, netmask and gateway using DHCP.
INFO:recovery:Loading kernel into memory from server. Should not take more than 60 seconds ...
DEBUG:recovery: setenv serverip 192.168.2.87
U-Boot>
DEBUG:recovery: setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:/srv/nfs/toon,nfsvers=3,nolock,tcp console=ttymxc0,115200 loglevel=8 mtdparts=mxc_nand:512K@0x00100000(u-boot-env)ro,1536K(splash-image),3M(kernel),3M(kernel-backup),119M(rootfs) ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:toon::off panic=0
U-Boot>
DEBUG:recovery:nfs 0xa1000000 /srv/nfs/toon/boot/uImage-nfs;bootm
DEBUG:recovery:Using FEC device
DEBUG:recovery:File transfer via NFS from server 192.168.2.87; our IP address is 192.168.2.3
DEBUG:recovery:Filename '/srv/nfs/toon/boot/uImage-nfs'.
DEBUG:recovery:Load address: 0xa1000000
DEBUG:recovery:Loading: *** ERROR: Cannot mount
INFO:recovery:Error loading from NFS server
This is locally on the toon when I stop the T T T T T T on serial console :
I doubt that the two occurences of the serverip should be there (notice that locally it is .87, despite .1 above in the python output)
Code: Select all
########### toon uboot printenv ################
printenv
bootdelay=2
baudrate=115200
loadaddr=0xA1000000
bootdelay=2
mtdids=nand0=mxc_nand
mtdparts=mtdparts=mxc_nand:1M(u-boot)ro,512K(u-boot-env)ro,1536K(splash-image),3M(kernel),3M(kernel-backup),119M(rootfs)
mtdparts_kernel=mtdparts=mxc_nand:512K@0x00100000(u-boot-env)ro,1536K(splash-image),3M(kernel),3M(kernel-backup),119M(rootfs)
mem=128M
autoload=no
backlight_brightness=50
baudrate=115200
console=ttymxc0
addtty=setenv bootargs ${bootargs} console=${console},${baudrate}
addmtd=setenv bootargs ${bootargs} ${mtdparts_kernel}
nandargs=setenv bootargs ubi.mtd=4 root=ubi0:rootfs rw rootfstype=ubifs
boot_nand=run nandargs addmtd addtty addmisc; nand read ${loadaddr} kernel; bootm ${loadaddr}
boot_nand_backup=run nandargs addmtd addtty addmisc; nand read ${loadaddr} kernel-backup; bootm ${loadaddr}
bootcmd=run boot_nand
splashimage=0x180000
ethact=FEC
sn=14-36-001-627
pn=6500-1400-2001
software_compatibility=0
manufacture_date=2014/09
ethaddr=00:0F:11:03:A8:D4
addmisc=setenv bootargs ${bootargs} mem=${mem} lpj=999424
serverip=192.168.2.87 <<<<<<<<<<<<
gatewayip=192.168.2.254
netmask=255.255.255.0
ipaddr=192.168.2.3
[b]serverip=192.168.2.87 <<<<<<<<<<<<
[/b]bootargs=root=/dev/nfs rw nfsroot=192.168.2.87:/srv/nfs/toon,nfsvers=3,nolock,tcp console=ttymxc0,115200 loglevel=8 mtdparts=mxc_nand:512K@0x00100000(u-boot-env)ro,1536K(splash-image),3M(kernel),3M(kernel-backup),119M(rootfs) ip=192.168.2.3:192.168.2.87:192.168.2.254:255.255.255.0:toon::off panic=0