Discussion:
[linux-sunxi] Converting script.bin to device tree file
Saurabh Jain
2016-09-04 12:48:47 UTC
Permalink
Is there a straightforward way to convert a script.bin file to a device
tree file? Any HOWTO that maps the various options?

Should I first be experimenting with the sunxi Uboot instead of Mainline?

My device has an AXP152 paired with an A20. Looking at Mainline U-boot,
this is an unexpected combination. What is a good defconfig and dts file to
begin work with, with this combination? I've been using the CubieTruck
defconfig and dts file so far. I copied over and created a new dts file,
which I've been mucking around with (and only making things worse).
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hans de Goede
2016-09-04 15:24:58 UTC
Permalink
Hi,
Is there a straightforward way to convert a script.bin file to a device tree file? Any HOWTO that maps the various options?
Should I first be experimenting with the sunxi Uboot instead of Mainline?
My device has an AXP152 paired with an A20. Looking at Mainline U-boot, this is an unexpected combination.
This is the first time I've heard of this weird pairing yes, but it should work with mainline u-boot,
just add CONFIG_AXP152_POWER=y to your defconfig.
What is a good defconfig and dts file to begin work with, with this combination?
None, you're the first...
I've been using the CubieTruck defconfig and dts file so far. I copied over and created a new dts file, which I've been mucking around with (and only making things worse).
Cubietruck is likely as good a start as any, and sorry no fex -> dts tool,
it is usually just a matter of manually copy and pasting the right
bits together to get a dts.

Regards,

Hans
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Saurabh Jain
2016-09-04 17:35:22 UTC
Permalink
Post by Saurabh Jain
Post by Saurabh Jain
Is there a straightforward way to convert a script.bin file to a device
tree file? Any HOWTO that maps the various options?
We at least need a HOWTO mapping script.bin options to device tree
constructs. I am going to start one... because an unanswered question is an
opportunity to do something.
Post by Saurabh Jain
Post by Saurabh Jain
Should I first be experimenting with the sunxi Uboot instead of
Mainline?
u-boot-sunxi worked. It was almost annoyingly easy. I just needed gcc
gnueabihf 4.x installed first.
Post by Saurabh Jain
Post by Saurabh Jain
My device has an AXP152 paired with an A20. Looking at Mainline U-boot,
this is an unexpected combination.
This is the first time I've heard of this weird pairing yes, but it should
work with mainline u-boot,
just add CONFIG_AXP152_POWER=y to your defconfig.
AXP_152 worked in mainline u-boot rather easily. It was the SD card that I
couldn't get working. Strange, because that must obviously work for
_everyone_ else for mainline u-boot to be of any use to anyone.

SD card worked quite smoothly in u-boot-sunxi. Will try and make nand work
now.
Post by Saurabh Jain
Post by Saurabh Jain
What is a good defconfig and dts file to begin work with, with this
combination?
None, you're the first...
Copied the Cubietruck board.cfg entry and made some changes. Modified the
cubietruck dram file. And done!
Post by Saurabh Jain
Post by Saurabh Jain
I've been using the CubieTruck defconfig and dts file so far. I copied
over and created a new dts file, which I've been mucking around with (and
only making things worse).
Cubietruck is likely as good a start as any, and sorry no fex -> dts tool,
it is usually just a matter of manually copy and pasting the right
bits together to get a dts.
As mentioned above, we still need a guide that maps between script.bin and
the rather confusing dts file format.
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
j***@gmail.com
2016-09-04 18:20:21 UTC
Permalink
I think there is a tool from Allwinner in their more recent releases
for mapping fex to device tree.

In here somewhere...
https://gitlab.com/pine64-android/tools/tree/master

when you go through the pack step it prints out a bunch of messages on
how it is doing the mapping. I have not looked at the tool, I just
noticed the messages it was printing.


Complete build instructions for A64 Android
https://gitlab.com/pine64-android/manifest/wikis/home
Post by Saurabh Jain
Post by Hans de Goede
Post by Saurabh Jain
Is there a straightforward way to convert a script.bin file to a device
tree file? Any HOWTO that maps the various options?
We at least need a HOWTO mapping script.bin options to device tree
constructs. I am going to start one... because an unanswered question is an
opportunity to do something.
Post by Hans de Goede
Post by Saurabh Jain
Should I first be experimenting with the sunxi Uboot instead of Mainline?
u-boot-sunxi worked. It was almost annoyingly easy. I just needed gcc
gnueabihf 4.x installed first.
Post by Hans de Goede
Post by Saurabh Jain
My device has an AXP152 paired with an A20. Looking at Mainline U-boot,
this is an unexpected combination.
This is the first time I've heard of this weird pairing yes, but it should
work with mainline u-boot,
just add CONFIG_AXP152_POWER=y to your defconfig.
AXP_152 worked in mainline u-boot rather easily. It was the SD card that I
couldn't get working. Strange, because that must obviously work for
_everyone_ else for mainline u-boot to be of any use to anyone.
SD card worked quite smoothly in u-boot-sunxi. Will try and make nand work
now.
Post by Hans de Goede
Post by Saurabh Jain
What is a good defconfig and dts file to begin work with, with this combination?
None, you're the first...
Copied the Cubietruck board.cfg entry and made some changes. Modified the
cubietruck dram file. And done!
Post by Hans de Goede
Post by Saurabh Jain
I've been using the CubieTruck defconfig and dts file so far. I copied
over and created a new dts file, which I've been mucking around with (and
only making things worse).
Cubietruck is likely as good a start as any, and sorry no fex -> dts tool,
it is usually just a matter of manually copy and pasting the right
bits together to get a dts.
As mentioned above, we still need a guide that maps between script.bin and
the rather confusing dts file format.
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
Jon Smirl
***@gmail.com
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...