pc-bios: petalogix-s3adsp1800.dtb: Use 'xlnx, xps-ethernetlite-2.00.a' instead of 'xlnx, xps-ethernetlite-2.00.b'
PATCH 1/1 pc-bios: petalogix-s3adsp1800.dtb: Use 'xlnx, xps-ethernetlite-2.00.a' instead of 'xlnx, xps-ethernetlite-2.00.b'
For Linux upstream kernel (e.g. 3.17-rc7), the related compatible string 'xlnx,xps-ethernetlite-2.00.a' is supported, but 'b' is not supported, so change qemu dtb file to match kernel driver.
The related operation for qemu (after this patch):
yum install libvirt
yum install tunctl
tunctl -b
ip link set tap0 up
brctl addif virbr0 tap0
./configure
make
./microblaze-softmmu/qemu-system-microblaze -M petalogix-s3adsp1800 \
-kernel ../linux-stable.microblaze/arch/microblaze/boot/linux.bin \
-no-reboot -append "console=ttyUL0,115200 doreboot" -nographic \
-net nic,vlan=0,model=xlnx.xps-ethernetlite,macaddr=00:16:35:AF:94:00 \
-net tap,vlan=0,ifname=tap0,script=no,downscript=noin microblaze qemu bash (guest machine):
ifconfig eth0 add 192.168.122.2 netmask 255.255.255.0 ifconfig eth0 up
Then can telnet 192.168.122.2 directly without password from the host machine.
The related operation for generating new dtb:
building Linux kernel firstly, then get dts tool "./scripts/dts/dts". "./scripts/dtc/dtc -I dtb -O dts -o ../work.dts ../qemu/petalogix-s3adsp1800.dtb" edit work.dts (replace 'xlnx,xps-ethernetlite-2.00.b') "./scripts/dtc/dtc -I dts -O dtb -o ..qemu/petalogix-s3adsp1800.dtb ../work.dts"
(Since I am not quite sure whether can read this patch or not, I put the related dtb file in attachment, please check, thanks).
--- pc-bios/petalogix-s3adsp1800.dtb | Bin 8259 -> 8259 bytes 1 file changed, 0 insertions(+), 0 deletions(-)
pc-bios/petalogix-s3adsp1800.dtb binary +0 -0
Signature · 1 line
1.9.3
Quoted 3 lines · Chen Gang
For Linux upstream kernel (e.g. 3.17-rc7), the related compatible string 'xlnx,xps-ethernetlite-2.00.a' is supported, but 'b' is not supported, so change qemu dtb file to match kernel driver.
/me does not know anything about this stuff at all. But anyway...
pc-bios/petalogix-s3adsp1800.dtb
Quoted 8 lines
pc-bios/petalogix-s3adsp1800.dtb binary +0
-0
Is it a binary-only file without source? Where it come from?
(it is not a simple question, eg, on Debian, binary files are disallowed (at least in main section)).
Thanks,
/mjt
As far as I know, It is a hardware description file. Can convert it to dts format which is a text file, then can read and edit it, after finish, can convert it to dtb format again.
dts and dtb can convert with each other without any information lost. One tool for converting is "scripts/dts/dts" in upstream kernel (after finish building kernel).
So for me, we can also treat dtb file as open source file. It is integrated into qemu in 2009 (please "git log -p" to this file for more details).
Thanks.
发自我的 iPad
Quoted 27 lines · 在 2014年11月3日,下午8:17,Michael Tokarev <[email protected]> 写道:
Quoted 3 lines · Chen Gang
For Linux upstream kernel (e.g. 3.17-rc7), the related compatible string 'xlnx,xps-ethernetlite-2.00.a' is supported, but 'b' is not supported, so change qemu dtb file to match kernel driver.
/me does not know anything about this stuff at all. But anyway...
pc-bios/petalogix-s3adsp1800.dtb
Quoted 8 lines
pc-bios/petalogix-s3adsp1800.dtb binary +0
-0Is it a binary-only file without source? Where it come from?
(it is not a simple question, eg, on Debian, binary files are disallowed (at least in main section)).
Thanks,
/mjt
Quoted 28 lines · Chen Gang
For Linux upstream kernel (e.g. 3.17-rc7), the related compatible string 'xlnx,xps-ethernetlite-2.00.a' is supported, but 'b' is not supported, so change qemu dtb file to match kernel driver.
The related operation for qemu (after this patch):
yum install libvirt
yum install tunctl
tunctl -b
ip link set tap0 up
brctl addif virbr0 tap0./configure make ./microblaze-softmmu/qemu-system-microblaze -M petalogix-s3adsp1800 \ -kernel ../linux-stable.microblaze/arch/microblaze/boot/linux.bin \ -no-reboot -append "console=ttyUL0,115200 doreboot" -nographic \ -net nic,vlan=0,model=xlnx.xps-ethernetlite,macaddr=00:16:35:AF:94:00 \ -net tap,vlan=0,ifname=tap0,script=no,downscript=noin microblaze qemu bash (guest machine):
ifconfig eth0 add 192.168.122.2 netmask 255.255.255.0 ifconfig eth0 up
Then can telnet 192.168.122.2 directly without password from the host machine.
Quoted 6 lines
The related operation for generating new dtb:
building Linux kernel firstly, then get dts tool "
./scripts/dts/dts". "./scripts/dtc/dtc-I dtb -O dts -o../work.dts../qemu/petalogix-s3adsp1800.dtb" editwork.dts(replace 'xlnx,xps-ethernetlite-2.00.b') "./scripts/dtc/dtc-I dts -O dtb -o ..qemu/petalogix-s3adsp1800.dtb../work.dts"
Oh well. I don't like this patch to be lost, but I must admit I don't understand what's happening here. Applied to -trivial.
Thanks,
/mjt
Quoted 31 lines · Michael Tokarev
Quoted 30 lines · Chen Gang
For Linux upstream kernel (e.g. 3.17-rc7), the related compatible string 'xlnx,xps-ethernetlite-2.00.a' is supported, but 'b' is not supported, so change qemu dtb file to match kernel driver.
The related operation for qemu (after this patch):
yum install libvirt
yum install tunctl
tunctl -b
ip link set tap0 up
brctl addif virbr0 tap0./configure make ./microblaze-softmmu/qemu-system-microblaze -M petalogix-s3adsp1800 \ -kernel ../linux-stable.microblaze/arch/microblaze/boot/linux.bin \ -no-reboot -append "console=ttyUL0,115200 doreboot" -nographic \ -net nic,vlan=0,model=xlnx.xps-ethernetlite,macaddr=00:16:35:AF:94:00 \ -net tap,vlan=0,ifname=tap0,script=no,downscript=noin microblaze qemu bash (guest machine):
ifconfig eth0 add 192.168.122.2 netmask 255.255.255.0 ifconfig eth0 up
Then can telnet 192.168.122.2 directly without password from the host machine.
The related operation for generating new dtb:
Quoted 8 lines
Quoted 4 lines
building Linux kernel firstly, then get dts tool "
./scripts/dts/dts". "./scripts/dtc/dtc-I dtb -O dts -o../work.dts../qemu/petalogix-s3adsp1800.dtb" editwork.dts(replace 'xlnx,xps-ethernetlite-2.00.b') "./scripts/dtc/dtc-I dts -O dtb -o ..qemu/petalogix-s3adsp1800.dtb../work.dts"Oh well. I don't like this patch to be lost, but I must admit I don't understand what's happening here. Applied to -trivial.
OK, thank you for your work. And I shall try to make another patch for qemu within this month.
Thanks.
Signature · 3 lines
Chen Gang Open, share, and attitude like air, water, and life which God blessed