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

Wrong U-boot Envs on Pogo Pro ? (no replies)

$
0
0
Hi Folks,

As i tried to install LEDE into the flash of my POGO Pro, i messed up my Uboot ENvs and cannot boot into debian anymore. At the moment, i can only get access to my pogo via serial cable.

Her are the Logs
U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12)
  Boot device: NAND
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set


U-Boot 2015.10-tld-2 (Oct 21 2017 - 22:00:02 -0700)
OXNAS OX820

DRAM:  128 MiB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   dwmac.40400000
dwmac.40400000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
dwmac.40400000: No link.
ping failed; host 192.168.0.2 is not alive
dwmac.40400000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
dwmac.40400000: No link.
ping failed; host 192.168.0.2 is not alive
dwmac.40400000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
dwmac.40400000: No link.
ping failed; host 192.168.0.2 is not alive
dwmac.40400000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
dwmac.40400000: No link.
ping failed; host 192.168.0.2 is not alive
dwmac.40400000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
dwmac.40400000: No link.
ping failed; host 192.168.0.2 is not alive
Hit any key to stop autoboot:  0
starting 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
## Error: "dt_usb_bootcmd" not defined
stopping USB..
Trying to boot from NAND ...
UBI: attaching mtd1 to ubi0
UBI: scanning is finished
UBI: attached mtd1 (name "mtd=1", size 114 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
UBI: VID header offset: 512 (aligned 512), data offset: 2048
UBI: good PEBs: 911, bad PEBs: 1, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 4/1, WL threshold: 4096, image sequence number: 352667282
UBI: available PEBs: 0, total reserved PEBs: 911, PEBs reserved for bad PEB handling: 19
Loading file '/boot/zImage' to addr 0x60500000 with size 1678672 (0x00199d50)...
Done
** File not found /boot/ox820-pogoplug-pro.dtb **
Unmounting UBIFS volume rootfs!
Booting from nand ...
Kernel image @ 0x60500000 [ 0x000000 - 0x199d50 ]
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
resetting ...

OX820> printenv
bootcmd=run dt_bootcmd_usb; run loadubi; reset
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm 0x60500000 0x60e00000 0x62c00000; else bootm 0x60500000 0x60e00000; fi; else if run load_dtb; then bootm 0x60500000 - 0x62c00000; else bootm 0x60500000; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
bootzubi=echo Booting from nand ...; run setargsubi; bootz ${loadaddr} - ${fdt_addr};
device=0:1
devices=usb ide
disks=0 1 2 3
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop
dt_load_dtb=ext2load usb 0:1 $dtb_addr $fdt_file
dtb_file=/boot/dts/ox820-pogoplug-pro.dtb
ethact=dwmac.40400000
ethaddr=00:25:31:01:e4:d4
fdt_addr=0x62c00000
fdt_file=/boot/dts/ox820-pogoplug-pro.dtb
fdt_file_ubi=/boot/ox820-pogoplug-classic.dtb
if_netconsole=ping $serverip
ipaddr=192.168.0.199
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device 0x62c00000 $dtb_file
load_initrd=echo loading uInitrd ...; load $bootdev $device 0x60e00000 /boot/uInitrd
load_uimage=echo loading uImage ...; load $bootdev $device 0x60500000 /boot/uImage
loadaddr=0x60500000
loadubi=echo Trying to boot from NAND ...;if run mountubi; then run loadubizimage;run loadubifdt;ubifsumount;run bootzubi;fi
loadubifdt=ubifsload ${fdt_addr} ${fdt_file_ubi}
loadubizimage=ubifsload ${loadaddr} ${zimage}
mainlineLinux=yes
mountubi=ubi part data; ubifsmount ubi0:rootfs
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
nc_ready=0
pogo_bootcmd=run pogo_set_bootargs; nand read 0x2000000 0x100000 0x400000 ; bootm 0x2000000
pogo_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/mtdblock2 rootfstype=jffs2 panic=10
preboot=run preboot_nc
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
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 0x60500000 /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.2
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
setargsubi=setenv bootargs console=ttyS0,115200n8 ubi.mtd=1 root=ubi0:rootfs rw rootfstype=ubifs rootwait ${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
uenv_import=echo importing envs ...; env import -t 0x60510000  $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=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x60500000 /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_custom_params=zswap.enabled=1
usb_ready_retry=15
zimage=/boot/zImage

Environment size: 3666/131068 bytes

Does anybody have an idea, what i have to change in order to boot debian from my USB again?

THX!

Viewing all articles
Browse latest Browse all 3178

Trending Articles