[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Allwinner u-boot problem with usb install



Hi folks,

I'm trying to install Jessie on an Olimex A20 micro following the
instructions at:

https://wiki.debian.org/InstallingDebianOn/Allwinner#Installing_from_a_USB_stick

I took the following steps:

1) Compiled the mainline u-boot by cloning
http://git.denx.de/u-boot.git/

2) For compilation I used the Olimex Debian derivative on the target
system.

3) Wrote the resulting u-boot-sunxi-with-spl.bin to a SD card with dd

Result: U-boot works, but there seems to be a problem with the
environment. When I type run usb_boot on the u-boot command line it
complains about an unknown 'part' command. This part command is in one
of the environment variables. I'm new to u-boot so I have no idea how to
fix this. Hope someone can help!

This is the version of u-boot that I'm using:


sunxi# version

U-Boot 2015.04-rc1-00004-g7f641d5 (Feb 09 2015 - 12:26:55) Allwinner
Technology
gcc (Debian 4.6.3-14) 4.6.3
GNU ld (GNU Binutils for Debian) 2.22


Printenv reports:

printenv
baudrate=115200
boot_a_script=load ${devtype} ${devnum}:${bootpart} ${scriptaddr}
${prefix}${script}; source ${scriptaddr}
boot_extlinux=sysboot ${devtype} ${devnum}:${bootpart} any ${scriptaddr}
${prefix}extlinux/extlinux.conf
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_targets=mmc0 scsi0 usb0 pxe dhcp 
bootcmd=run distro_bootcmd
bootcmd_dhcp=usb start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then
source ${scriptaddr}; fi
bootcmd_mmc0=setenv devnum 0; run mmc_boot
bootcmd_pxe=usb start; dhcp; if pxe get; then pxe boot; fi
bootcmd_scsi0=setenv devnum 0; run scsi_boot
bootcmd_usb0=setenv devnum 0; run usb_boot
bootdelay=2
bootm_size=0xf000000
console=ttyS0,115200
devtype=usb
distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do
run bootcmd_${target}; done
ethact=dwmac.1c50000
ethaddr=02:84:02:81:90:fa
fdt_addr_r=0x43000000
fdtfile=sun7i-a20-olinuxino-micro.dtb
kernel_addr_r=0x42000000
mmc_boot=if mmc dev ${devnum}; then setenv devtype mmc; run
scan_dev_for_boot_part; fi
preboot=usb start
pxefile_addr_r=0x43200000
ramdisk_addr_r=0x43300000
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${bootpart}...; for
prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run
scan_dev_for_scripts; done

scan_dev_for_boot_part=part list ${devtype} ${devnum} devplist; for 
bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${bootpart}
bootfstype; then run scan_dev_for_boot; fi; done

scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${bootpart}
${prefix}extlinux/extlinux.conf; then echo Found
${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED:
continuing...; fi

scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e
${devtype} ${devnum}:${bootpart} ${prefix}${script}; then echo Found
U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED:
continuing...; fi; done

scriptaddr=0x43100000
scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype
scsi; run scan_dev_for_boot_part; fi
scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi
scan; fi
stderr=serial,vga
stdin=serial,usbkbd
stdout=serial,vga

usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run 
scan_dev_for_boot_part; fi

Environment size: 2351/131068 bytes

Rob.
http://freedomboxblog.bl


Reply to: