[U-Boot] standalone example on mips/ath79/QCA9558/Tp-Link Archer-c7
Daniel Schwierzeck
daniel.schwierzeck at gmail.com
Tue Jan 30 19:37:58 UTC 2018
Hi Arvid,
On 27.01.2018 12:36, Arvid Picciani wrote:
> HI,
>
> i'm trying the standalone hello_world.bin example on a
> mips/ath79/QCA9558/Tp-Link Archer-c7
>
> it just hangs for me:
>
> ap135> tftpboot 0x80200000
> dup 1 speed 1000
> *** Warning: no boot file name; using '6F01A8C0.img'
> Using eth1 device
> TFTP from server 192.168.1.100; our IP address is 192.168.1.111
> Filename '6F01A8C0.img'.
> Load address: 0x80200000
> Loading: #
> done
>
> done
> Bytes transferred = 1536 (600 hex)
> ap135> go 0x80200000
> ## Starting application at 0x80200000 ...
>
>
> nothing happens beyond this point
>
> am i supposed to do anything different here?
I'm afraid that standalone support on MIPS is broken since we moved from
manual symbol relocation to dynamic relocation. I've pushed a fix to
git://git.denx.de/u-boot-mips.git branch 'fix_standalone_v1'.
Could you retest with that branch? I'll send a patch series later.
At least it worked again on Malta board in Qemu:
$ qemu-system-mips -M malta -cpu 24Kc -m 256 -nographic -netdev user,id=ubtest,tftp=examples/standalone -device pcnet,netdev=ubtest -bios u-boot.bin
U-Boot 2018.03-rc1-00003-ga947c7ded0 (Jan 30 2018 - 20:31:48 +0100)
Board: MIPS Malta CoreLV
DRAM: 256 MiB
Flash: 4 MiB
*** Warning - bad CRC, using default environment
In: serial at 3f8
Out: serial at 3f8
Err: serial at 3f8
Net: pcnet#0
IDE: Bus 0: not available
malta #
malta # dhcp 80200000 hello_world.bin
BOOTP broadcast 1
DHCP client bound to address 10.0.2.15 (1 ms)
Using pcnet#0 device
TFTP from server 10.0.2.2; our IP address is 10.0.2.15
Filename 'hello_world.bin'.
Load address: 0x80200000
Loading: #######
32.2 MiB/s
done
Bytes transferred = 33784 (83f8 hex)
malta # go 80200000
## Starting application at 0x80200000 ...
Example expects ABI version 9
Actual U-Boot ABI version 9
Hello World
argc = 1
argv[0] = "80200000"
argv[1] = "<NULL>"
Hit any key to exit ...
## Application terminated, rc = 0x0
malta # QEMU: Terminated
--
- Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180130/3119bbd6/attachment.sig>
More information about the U-Boot
mailing list