Jump to content

[OPI PC+] u-boot : boot.scr issue


Philip63

Recommended Posts

Hello,

 

 [OPI PC+] u-boot : boot.scr issue

 

Oracle VM: Linux cross-compilation 4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

 

DS413J as DHCP and PXE/TFTP server with these files (copied from /dev/mmcblk0p1) on the TFTP root:

boot.scr (mine but original one works well)

script.bin

KERNEL

 

Same issue if i put my boot.scr onto the eMMC...

Every single command works well on u-boot prompt.

 

boot.cmd as follow, compiled with this command from Armbian doc:

# OpenELEC Boot (philip63 - 02.12.2017)
gpio set PL10
gpio set PA15
setenv machid 1029
setenv bootm_boot_mode sec
setenv bootargs console=ttyS0,115200 boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 consoleblank=0
fatload mmc 0 0x43000000 script.bin
fatload mmc 0 0x42000000 KERNEL
bootm 0x42000000

 

philippe@cross-compilation:~/Documents/OPI/crosscompile/u-boot/tools$ mkimage -C none -A arm -T script -d ./boot.cmd ./boot.scr
Image Name:   
Created:      Sat Dec 16 11:09:10 2017
Image Type:   ARM Linux Script (uncompressed)
Data Size:    352 Bytes = 0.34 kB = 0.00 MB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 344 Bytes = 0.34 kB = 0.00 MB

philippe@cross-compilation:~/Documents/OPI/crosscompile/u-boot/tools$

 

I have the following issue under u-boot with an boot.scr compiled from my own:

 

U-Boot SPL 2017.09-armbian (Nov 22 2017 - 16:49:59)
DRAM: 1024 MiB
Trying to boot from MMC2


U-Boot 2017.09-armbian (Nov 22 2017 - 16:49:59 +0100) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi PC Plus
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 1, SUNXI SD/MMC: 0
In:    serial
Out:   vidconsole
Err:   vidconsole
Net:   phy interface0
eth0: ethernet@1c30000
Autoboot in 5 seconds, press <Space> to stop

=> dhcp
BOOTP broadcast 1
DHCP client bound to address 192.168.1.245 (62 ms)

=> tftp 0x43100000 boot.scr
Using ethernet@1c30000 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.245
Filename 'boot.scr'.
Load address: 0x43100000
Loading: #
         406.3 KiB/s
done
Bytes transferred = 416 (1a0 hex)
=> source 0x43100000
## Executing script at 43100000
' not found
Command 'gpio' failed: Error -22
' not found
Command 'gpio' failed: Error -22
reading script.bin
 **Unable to read file script.bin
reading KERNEL
 **Unable to read file KERNEL
bootm - boot application image from memory

Usage:

.../...

 

Thanks in advance.

Philippe

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines