*** U-Boot SD CARD *** 1. System Load Linux to SDRAM via TFTP. 2. System Load Linux Kernel then write to Flash via TFTP. 3. Boot Linux from SD. 4. System Load U-Boot then write to Flash via TFTP. 5. System Load U-Boot then write to Flash via Serial. 6. System Load ATF then write to Flash via TFTP. 7. System Load Preloader then write to Flash via TFTP. 8. System Load ROM header then write to Flash via TFTP. 9. System Load CTP then write to Flash via TFTP. a. System Load CTP then Boot to CTP (via Flash). b. System Load flashimage then write to Flash via TFTP. c. System Load partition table then write to Flash via TFTP. U-Boot console Press UP/DOWN to move or Press 1~9,a~b to choose, ENTER to select
wird hier definiert: https://github.com/BPI-SINOVOIP/BPI-R64-bsp/blob/master/u-boot-mt/include/configs/mt7622_evb.h
uboot booted nicht, wenn mit gcc >=5.5 kompiliert (muss also z.b. unter ubuntu 14.4 compiliert werden)
UBOOT=u-boot-mt/u-boot-mtk.bin sudo dd if=$UBOOT of=$O bs=1k seek=768 #768k = 0xC0000
modifizierte uEnv.txt des debian-Images (for testing)
bpi=bananapi board=bpi-r64 chip=mt7622 service=linux root=/dev/mmcblk0p2 rootfstype=ext4 rootwait console=ttyS0,115200n1 earlyprintk bootopts=debug=7 initcall_debug=0 androidboot.hardware=mt7622 swiotlb=512 abootargs=setenv bootargs board=${board} console=${console} root=${root} service=${service} ${bootopts} kernel=uImage fdt=mt7622-bananapi-r64.dtb kaddr=0x44000000 rdaddr=0x46000000 dtaddr=0x47000000 aload_fdt=fatload $device $partition $dtaddr ${bpi}/${board}/${service}/dtb/${fdt} aload_kernel=fatload $device $partition $kaddr ${bpi}/${board}/${service}/${kernel} aboot=bootm $kaddr - $dtaddr uenvcmd=run abootargs aload_fdt aload_kernel aboot
BPI-R64> printenv tfu tfu=setexpr umtkaddr ${uaddr} - 0x200;tftp ${umtkaddr} ${ufile};go ${uaddr} BPI-R64> setenv ufile u-boot-mtk_r64_sd_rtl8367_gcc6.5.bin BPI-R64> run tfu Using mtk_eth device TFTP from server 192.168.0.10; our IP address is 192.168.0.18 Filename 'u-boot-mtk_r64_sd_rtl8367_gcc6.5.bin'. Load address: 0x41dffe00 Loading: ##################### 2.4 MiB/s done Bytes transferred = 297468 (489fc hex) get filesize 0x489fc ## Starting application at 0x41E00000 ... U-Boot 2014.04-rc1-00024-g35908bc2eb-dirty (Sep 26 2019 - 08:32:43) DRAM: 1008 MiB WARNING: Caches not enabled ... BPI-R64> version U-Boot 2014.04-rc1-00024-g35908bc2eb-dirty (Sep 26 2019 - 08:32:43) arm-linux-gnueabihf-gcc (Ubuntu/Linaro 6.5.0-2ubuntu1~18.04) 6.5.0 20181026 GNU ld (GNU Binutils for Ubuntu) 2.30 BPI-R64>
(r2)
BPI-R64> setenv ipaddr 192.168.0.18 BPI-R64> setenv netmask 255.255.255.0 BPI-R64> setenv serverip 192.168.0.10 BPI-R64> setenv bootfile uImage_r64 BPI-R64> setenv bootdtbfile r64.dtb BPI-R64> setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait ip=dhcp BPI-R64> setenv kaddr 0x44000000 BPI-R64> setenv dtaddr 0x47000000 BPI-R64> tftp $kaddr ${bootfile} BPI-R64> tftp $dtaddr ${bootdtbfile} BPI-R64> bootm $kaddr - $dtaddr
BPI-R64> pci enum PCI: Failed autoconfig bar 10 PCI: Failed autoconfig bar 10 BPI-R64> pci 0 Scanning PCI devices on bus 0 BusDevFun VendorId DeviceId Device Class Sub-Class --- 00.00.00 0x14c3 0x3258 Bridge device 0x04 00.01.00 0x14c3 0x3258 Bridge device 0x04 BPI-R64> pci 1 Scanning PCI devices on bus 1 BusDevFun VendorId DeviceId Device Class Sub-Class --- 01.00.00 0x168c 0x003c Network controller 0x80 BPI-R64> pci 2 Scanning PCI devices on bus 2 BusDevFun VendorId DeviceId Device Class Sub-Class --- 02.00.00 0x14c3 0x7612 Network controller 0x80 BPI-R64>
BPI-R64> scsi scan scanning bus for devices... Target spinup took 0 ms. AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl SATA mode flags: ncq stag pm clo only pmp pio slum part ccc apst Device 0: (0:0) Vendor: ATA Prod.: ST750LM022 HN-M7 Rev: 2AR1 Type: Hard Disk Capacity: 715404.8 MB = 698.6 GB (1465149168 x 512) BPI-R64> ls scsi 0:1 EFI/ 512 BOOTSECT.BAK 1 file(s), 1 dir(s) BPI-R64>
BPI-R64> usb start starting USB... Bus usb@1a0c0000: hcd: 0x1a0c0000, ippc: 0x1a0c4700 u2p:2, u3p:1 Register 300010f NbrPorts 3 Starting the controller USB XHCI 0.96 scanning bus usb@1a0c0000 for devices... 2 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found BPI-R64> ls usb 0:1 91 mcurom.md5 System Volume Information/ 1 file(s), 1 dir(s) BPI-R64>