regression tests for am3517-evm machine?
Are there any regression tests and/or recent builds of a 3.1x or 4.x series kernel on an am3517 eval board? The original 'supported' TI SDKs were all of the 2.6.x series, and it seems like somewhere along the way something broke, and I'm trying to figure out what it was.
Signature · 6 lines
---------------------------------------------------------------------------- Troy Benjegerdes 'da hozer' [email protected] 7 elements earth::water::air::fire::mind::spirit::soul grid.coop Never pick a fight with someone who buys ink by the barrel, nor try buy a hacker who makes money by the megahash
Quoted 4 lines · Troy Benjegerdes
Are there any regression tests and/or recent builds of a 3.1x or 4.x series kernel on an am3517 eval board? The original 'supported' TI SDKs were all of the 2.6.x series, and it seems like somewhere along the way something broke, and I'm trying to figure out what it was.
Do you have any specifics for the breakage?
Signature · 1 line
Denys
Quoted 10 lines · Denys Dmytriyenko
Quoted 4 lines · Troy Benjegerdes
Are there any regression tests and/or recent builds of a 3.1x or 4.x series kernel on an am3517 eval board? The original 'supported' TI SDKs were all of the 2.6.x series, and it seems like somewhere along the way something broke, and I'm trying to figure out what it was.
Do you have any specifics for the breakage?
Signature · 1 line
Denys
The kernel stops after discovering the MMC, but before mounting the filesystem:
[ 2.446441] Key type dns_resolver registered [ 2.461151] voltdm_scale: No voltage scale API registered for vdd_mpu_iva [ 2.468444] voltdm_scale: No voltage scale API registered for vdd_core [ 2.479156] PM: no software I/O chain control; some wakeups may be lost [ 2.486816] ThumbEE CPU extension supported. [ 2.491363] Registering SWP/SWPB emulation handler [ 2.503784] regulator-dummy: incomplete constraints, leaving on [ 2.516876] davinci_emac davinci_emac.0: using random MAC addr: 9e:53:0c:1a:23:3 [ 2.622650] Waiting for root device /dev/mmcblk0p2... [ 2.629638] mmc0: new high speed SDHC card at address aaaa [ 2.641143] mmcblk0: mmc0:aaaa SU04G 3.69 GiB
Also, is there a bitbake target that makes an image I can write to an SD card? I got myself all confused trying to convert an SD image for a beaglebone and apparently replacing MLO was not sufficient.
Signature · 5 lines
---------------------------------------------------------------------------- Troy Benjegerdes 'da hozer' [email protected] 7 elements earth::water::air::fire::mind::spirit::soul grid.coop Never pick a fight with someone who buys ink by the barrel, nor try buy a hacker who makes money by the megahash
Any suggestions on what branches and/or targets I should be using that might work better?
Quoted 32 lines · Troy Benjegerdes
Quoted 10 lines · Denys Dmytriyenko
Quoted 4 lines · Troy Benjegerdes
Are there any regression tests and/or recent builds of a 3.1x or 4.x series kernel on an am3517 eval board? The original 'supported' TI SDKs were all of the 2.6.x series, and it seems like somewhere along the way something broke, and I'm trying to figure out what it was.
Do you have any specifics for the breakage?
Signature · 1 line
DenysThe kernel stops after discovering the MMC, but before mounting the filesystem:
[ 2.446441] Key type dns_resolver registered [ 2.461151] voltdm_scale: No voltage scale API registered for vdd_mpu_iva [ 2.468444] voltdm_scale: No voltage scale API registered for vdd_core [ 2.479156] PM: no software I/O chain control; some wakeups may be lost [ 2.486816] ThumbEE CPU extension supported. [ 2.491363] Registering SWP/SWPB emulation handler [ 2.503784] regulator-dummy: incomplete constraints, leaving on [ 2.516876] davinci_emac davinci_emac.0: using random MAC addr: 9e:53:0c:1a:23:3 [ 2.622650] Waiting for root device /dev/mmcblk0p2... [ 2.629638] mmc0: new high speed SDHC card at address aaaa [ 2.641143] mmcblk0: mmc0:aaaa SU04G 3.69 GiBAlso, is there a bitbake target that makes an image I can write to an SD card? I got myself all confused trying to convert an SD image for a beaglebone and apparently replacing MLO was not sufficient.
Signature · 6 lines
---------------------------------------------------------------------------- Troy Benjegerdes 'da hozer' [email protected] 7 elements earth::water::air::fire::mind::spirit::soul grid.coop Never pick a fight with someone who buys ink by the barrel, nor try buy a hacker who makes money by the megahash
Quoted 15 lines · Troy Benjegerdes
Quoted 10 lines · Denys Dmytriyenko
Quoted 4 lines · Troy Benjegerdes
Are there any regression tests and/or recent builds of a 3.1x or 4.x series kernel on an am3517 eval board? The original 'supported' TI SDKs were all of the 2.6.x series, and it seems like somewhere along the way something broke, and I'm trying to figure out what it was.
Do you have any specifics for the breakage?
Signature · 1 line
DenysThe kernel stops after discovering the MMC, but before mounting the filesystem:
Quoted 11 lines
[ 2.446441] Key type dns_resolver registered [ 2.461151] voltdm_scale: No voltage scale API registered for vdd_mpu_iva [ 2.468444] voltdm_scale: No voltage scale API registered for vdd_core [ 2.479156] PM: no software I/O chain control; some wakeups may be lost [ 2.486816] ThumbEE CPU extension supported. [ 2.491363] Registering SWP/SWPB emulation handler [ 2.503784] regulator-dummy: incomplete constraints, leaving on [ 2.516876] davinci_emac davinci_emac.0: using random MAC addr: 9e:53:0c:1a:23:3 [ 2.622650] Waiting for root device /dev/mmcblk0p2... [ 2.629638] mmc0: new high speed SDHC card at address aaaa [ 2.641143] mmcblk0: mmc0:aaaa SU04G 3.69 GiB
Looks like it did not recognize the partitions on the MMC, hence waiting for the second partition /dev/mmcblk0p2 to become available to mount root from.
Quoted 3 lines
Also, is there a bitbake target that makes an image I can write to an SD card? I got myself all confused trying to convert an SD image for a beaglebone and apparently replacing MLO was not sufficient.
If you are asking about a pre-partitioned SD card image, then there's no bitbake target for that, but you can look into 'wic' tool that does it.
Signature · 1 line
Denys
Quoted 28 lines · Denys Dmytriyenko
Quoted 15 lines · Troy Benjegerdes
Quoted 10 lines · Denys Dmytriyenko
Quoted 4 lines · Troy Benjegerdes
Are there any regression tests and/or recent builds of a 3.1x or 4.x series kernel on an am3517 eval board? The original 'supported' TI SDKs were all of the 2.6.x series, and it seems like somewhere along the way something broke, and I'm trying to figure out what it was.
Do you have any specifics for the breakage?
Signature · 1 line
DenysThe kernel stops after discovering the MMC, but before mounting the filesystem:
Quoted 11 lines
[ 2.446441] Key type dns_resolver registered [ 2.461151] voltdm_scale: No voltage scale API registered for vdd_mpu_iva [ 2.468444] voltdm_scale: No voltage scale API registered for vdd_core [ 2.479156] PM: no software I/O chain control; some wakeups may be lost [ 2.486816] ThumbEE CPU extension supported. [ 2.491363] Registering SWP/SWPB emulation handler [ 2.503784] regulator-dummy: incomplete constraints, leaving on [ 2.516876] davinci_emac davinci_emac.0: using random MAC addr: 9e:53:0c:1a:23:3 [ 2.622650] Waiting for root device /dev/mmcblk0p2... [ 2.629638] mmc0: new high speed SDHC card at address aaaa [ 2.641143] mmcblk0: mmc0:aaaa SU04G 3.69 GiB
Quoted 2 lines
Looks like it did not recognize the partitions on the MMC, hence waiting for the second partition
/dev/mmcblk0p2to become available to mount root from.
Didn't 3.x kernels start requiring a device tree somewhere along the line?
I know the Beaglebone uses a device tree, but I can't seem to manage find all the right pieces to build a working u-boot for am3517-evm that can properly pass it off to the kernel, at least with the Legacy image format(s).
So speaking of which, what prevents us from using the CONFIG_OF_CONTROL options in u-boot so we could have the same u-boot binary work on both a beaglebone and an am3517 based platform, provided you have the right device trees for each board?
Quoted 29 lines · Troy Benjegerdes
Quoted 28 lines · Denys Dmytriyenko
Quoted 26 lines · Troy Benjegerdes
Quoted 10 lines · Denys Dmytriyenko
Quoted 4 lines · Troy Benjegerdes
Are there any regression tests and/or recent builds of a 3.1x or 4.x series kernel on an am3517 eval board? The original 'supported' TI SDKs were all of the 2.6.x series, and it seems like somewhere along the way something broke, and I'm trying to figure out what it was.
Do you have any specifics for the breakage?
Signature · 1 line
DenysThe kernel stops after discovering the MMC, but before mounting the filesystem:
[ 2.446441] Key type dns_resolver registered [ 2.461151] voltdm_scale: No voltage scale API registered for vdd_mpu_iva [ 2.468444] voltdm_scale: No voltage scale API registered for vdd_core [ 2.479156] PM: no software I/O chain control; some wakeups may be lost [ 2.486816] ThumbEE CPU extension supported. [ 2.491363] Registering SWP/SWPB emulation handler [ 2.503784] regulator-dummy: incomplete constraints, leaving on [ 2.516876] davinci_emac davinci_emac.0: using random MAC addr: 9e:53:0c:1a:23:3 [ 2.622650] Waiting for root device /dev/mmcblk0p2... [ 2.629638] mmc0: new high speed SDHC card at address aaaa [ 2.641143] mmcblk0: mmc0:aaaa SU04G 3.69 GiB
Quoted 8 lines
Quoted 2 lines
Looks like it did not recognize the partitions on the MMC, hence waiting for the second partition
/dev/mmcblk0p2to become available to mount root from.Didn't 3.x kernels start requiring a device tree somewhere along the line?
I know the Beaglebone uses a device tree, but I can't seem to manage find all the right pieces to build a working u-boot for am3517-evm that can properly pass it off to the kernel, at least with the Legacy image format(s).
Well, am3517 is one of the legacy platforms and I don't believe it was ever converted to use device tree...
Signature · 1 line
Denys
Quoted 4 lines
So speaking of which, what prevents us from using the
CONFIG_OF_CONTROLoptions in u-boot so we could have the same u-boot binary work on both a beaglebone and an am3517 based platform, provided you have the right device trees for each board?
Quoted 8 lines
Quoted 5 lines
Didn't 3.x kernels start requiring a device tree somewhere along the line?
I know the Beaglebone uses a device tree, but I can't seem to manage find all the right pieces to build a working u-boot for am3517-evm that can properly pass it off to the kernel, at least with the Legacy image format(s).
Well, am3517 is one of the legacy platforms and I don't believe it was ever converted to use device tree...
Looks like it should atleast boot to mmc rootfs..
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/arch/arm/boot/dts/am3517-evm.dts
Regards,
Signature · 2 lines
Robert Nelson https://rcn-ee.com/
Quoted 6 lines · Robert Nelson
Quoted 6 lines
Quoted 5 lines
Didn't 3.x kernels start requiring a device tree somewhere along the line?
I know the Beaglebone uses a device tree, but I can't seem to manage find all the right pieces to build a working u-boot for am3517-evm that can properly pass it off to the kernel, at least with the Legacy image format(s).
Quoted 6 lines
Quoted 2 lines
Well, am3517 is one of the legacy platforms and I don't believe it was ever converted to use device tree...
Looks like it should atleast boot to mmc rootfs..
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/arch/arm/boot/dts/am3517-evm.dts
Well, I guess my memory is not that great any more... :)
Signature · 1 line
Denys
Quoted 10 lines · Denys Dmytriyenko
Quoted 9 lines · Robert Nelson
Quoted 8 lines
Quoted 5 lines
Didn't 3.x kernels start requiring a device tree somewhere along the line?
I know the Beaglebone uses a device tree, but I can't seem to manage find all the right pieces to build a working u-boot for am3517-evm that can properly pass it off to the kernel, at least with the Legacy image format(s).
Well, am3517 is one of the legacy platforms and I don't believe it was ever converted to use device tree...
Quoted 8 lines
Quoted 3 lines
Looks like it should atleast boot to mmc rootfs..
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/arch/arm/boot/dts/am3517-evm.dts
Well, I guess my memory is not that great any more... :)
So the first problem seems to be that the 'u-boot' target produces a build from the 2014.07 version, which does not seem to have any environment or other setup to load a device tree.
Is there some patch floating around somewhere that updates the default u-boot environment to work better with new kernels, or do I need try and merge something in from the beaglebone
Quoted 20 lines · Troy Benjegerdes
Quoted 10 lines · Denys Dmytriyenko
Quoted 9 lines · Robert Nelson
Quoted 8 lines
Quoted 5 lines
Didn't 3.x kernels start requiring a device tree somewhere along the line?
I know the Beaglebone uses a device tree, but I can't seem to manage find all the right pieces to build a working u-boot for am3517-evm that can properly pass it off to the kernel, at least with the Legacy image format(s).
Well, am3517 is one of the legacy platforms and I don't believe it was ever converted to use device tree...
Quoted 8 lines
Quoted 3 lines
Looks like it should atleast boot to mmc rootfs..
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/arch/arm/boot/dts/am3517-evm.dts
Well, I guess my memory is not that great any more... :)
Quoted 7 lines
So the first problem seems to be that the 'u-boot' target produces a build from the 2014.07 version, which does not seem to have any environment or other setup to load a device tree.
Is there some patch floating around somewhere that updates the default u-boot environment to work better with new kernels, or do I need try and merge something in from the beaglebone
Can you try u-boot-ti-staging instead?
Signature · 1 line
Denys
Quoted 9 lines
Quoted 7 lines
So the first problem seems to be that the 'u-boot' target produces a build from the 2014.07 version, which does not seem to have any environment or other setup to load a device tree.
Is there some patch floating around somewhere that updates the default u-boot environment to work better with new kernels, or do I need try and merge something in from the beaglebone
Can you try u-boot-ti-staging instead?
This is from 'pokey' ( yocto-2.0-121-g2fb7ee2 ),
with meta-ti: ( v2012.05-yocto1.2-938-gd397744 )
U-Boot 2015.07 (Jan 27 2016 - 15:32:32 -0600)
...AM3517_EVM # printenv
baudrate=115200
bootcmd=mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if run loaduimai bootdelay=10
bootfile=uImage
bootscript=echo Running bootscript from mmc ...; source ${loadaddr}
console=ttyO2,115200n8
dieid#=3f42000100000000015da3960e012002
ethact=DaVinci-EMAC
loadaddr=0x82000000
loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr
loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage
mmcargs=setenv bootargs console=${console} root=/dev/mmcblk0p2 rw rootwait
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}
mmcdev=0
nandargs=setenv bootargs console=${console} root=/dev/mtdblock4 rw rootfstype=jffs2 nandboot=echo Booting from nand ...; run nandargs; nand read ${loadaddr} 280000 400000; bootm ${loadaddr} stderr=serial
stdin=serial
stdout=serial
Signature · 6 lines
---------------------------------------------------------------------------- Troy Benjegerdes 'da hozer' [email protected] 7 elements earth::water::air::fire::mind::spirit::soul grid.coop Never pick a fight with someone who buys ink by the barrel, nor try buy a hacker who makes money by the megahash
Quoted 4 lines · Troy Benjegerdes
Quoted 4 lines
Quoted 4 lines
So the first problem seems to be that the 'u-boot' target produces a build from the 2014.07 version, which does not seem to have any environment or other setup to load a device tree.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Is there some patch floating around somewhere that updates the default u-boot environment to work better with new kernels, or do I need try and merge something in from the beaglebone
Can you try u-boot-ti-staging instead?
This is from 'pokey' ( yocto-2.0-121-g2fb7ee2 ),
with meta-ti: ( v2012.05-yocto1.2-938-gd397744 )
Strange mix of branches - 2012 was almost 4 years ago... :)
I'd recommend using "fido" branch in all layers, as most tested at the moment. Still no guarantees about am3517, as that platform hasn't been officially tested for quite some time.
Quoted 35 lines
U-Boot 2015.07 (Jan 27 2016 - 15:32:32 -0600)
...AM3517_EVM# printenv
baudrate=115200
bootcmd=mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if run loaduimai bootdelay=10
bootfile=uImage
bootscript=echo Running bootscript from mmc ...; source ${loadaddr}
console=ttyO2,115200n8
dieid#=3f42000100000000015da3960e012002
ethact=DaVinci-EMAC
loadaddr=0x82000000
loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr
loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage
mmcargs=setenv bootargs console=${console} root=/dev/mmcblk0p2 rw rootwait
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}
mmcdev=0
nandargs=setenv bootargs console=${console} root=/dev/mtdblock4 rw rootfstype=jffs2 nandboot=echo Booting from nand ...; run nandargs; nand read ${loadaddr} 280000 400000; bootm ${loadaddr} stderr=serial
stdin=serial
stdout=serialSignature · 6 lines
---------------------------------------------------------------------------- Troy Benjegerdes 'da hozer' [email protected] 7 elements earth::water::air::fire::mind::spirit::soul grid.coop Never pick a fight with someone who buys ink by the barrel, nor try buy a hacker who makes money by the megahash
Quoted 11 lines · Denys Dmytriyenko
Quoted 10 lines · Troy Benjegerdes
Quoted 9 lines
Quoted 7 lines
So the first problem seems to be that the 'u-boot' target produces a build from the 2014.07 version, which does not seem to have any environment or other setup to load a device tree.
Is there some patch floating around somewhere that updates the default u-boot environment to work better with new kernels, or do I need try and merge something in from the beaglebone
Can you try u-boot-ti-staging instead?
Quoted 8 lines
Quoted 2 lines
This is from 'pokey' ( yocto-2.0-121-g2fb7ee2 ),
with meta-ti: ( v2012.05-yocto1.2-938-gd397744 )Strange mix of branches - 2012 was almost 4 years ago... :)
I'd recommend using "fido" branch in all layers, as most tested at the moment. Still no guarantees about am3517, as that platform hasn't been officially tested for quite some time.
Ah, I was on master for meta-ti.
FYI, I needed the following hack to build on yocto-2.0:
~/src/poky/meta-ti/recipes-graphics/drm
% git diff
recipes-graphics/drm/libdrm_2.4.41.bb +2 -1
@@ -1,8 +1,9 @@ -require recipes-graphics/drm/libdrm.inc +#require recipes-graphics/drm/libdrm.inc FILESEXTRAPATHS_append := ":${COREBASE}/meta/recipes-graphics/drm/libdrm" COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15" +LICENSE = 'GPL'
After a little more digging around, I find that having:
#define CONFIG_OF_LIBFDT
is required for u-boot to be able to recognize and load a device tree, but it does not seem to be set in the am3517 build(s).
If I build a u-boot from source with CONFIG_OF_LIBFDT, I get the expected output, but now if boot a mainline 3.16 or 3.18 kernel (which mostly work with no device tree), these kernels fail to boot with a device tree.
Quoted 17 lines · Troy Benjegerdes
Quoted 16 lines · Denys Dmytriyenko
Quoted 4 lines · Troy Benjegerdes
Quoted 4 lines
Quoted 4 lines
So the first problem seems to be that the 'u-boot' target produces a build from the 2014.07 version, which does not seem to have any environment or other setup to load a device tree.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Is there some patch floating around somewhere that updates the default u-boot environment to work better with new kernels, or do I need try and merge something in from the beaglebone
Can you try u-boot-ti-staging instead?
This is from 'pokey' ( yocto-2.0-121-g2fb7ee2 ),
with meta-ti: ( v2012.05-yocto1.2-938-gd397744 )Strange mix of branches - 2012 was almost 4 years ago... :)
Quoted 7 lines
Quoted 3 lines
I'd recommend using "fido" branch in all layers, as most tested at the moment. Still no guarantees about am3517, as that platform hasn't been officially tested for quite some time.
Ah, I was on master for meta-ti.
FYI, I needed the following hack to build on yocto-2.0:
It was fixed in master long ago:
http://git.yoctoproject.org/cgit/cgit.cgi/meta-ti/commit/recipes-graphics/drm/libdrm.inc?id=2d2633227f541395276316a4b45bafa41be94003
Quoted 25 lines
~/src/poky/meta-ti/recipes-graphics/drm
% git diffrecipes-graphics/drm/libdrm_2.4.41.bb +2
-1@@ -1,8 +1,9 @@ -require recipes-graphics/drm/libdrm.inc +#require recipes-graphics/drm/libdrm.inc FILESEXTRAPATHS_append := ":${COREBASE}/meta/recipes-graphics/drm/libdrm" COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15" +LICENSE = 'GPL'After a little more digging around, I find that having:
#defineCONFIG_OF_LIBFDT
is required for u-boot to be able to recognize and load a device tree, but it does not seem to be set in the am3517 build(s).If I build a u-boot from source with
CONFIG_OF_LIBFDT, I get the expected output, but now if boot a mainline 3.16 or 3.18 kernel (which mostly work with no device tree), these kernels fail to boot with a device tree.
Quoted 9 lines
Quoted 9 lines
After a little more digging around, I find that having:
#defineCONFIG_OF_LIBFDT
is required for u-boot to be able to recognize and load a device tree, but it does not seem to be set in the am3517 build(s).If I build a u-boot from source with
CONFIG_OF_LIBFDT, I get the expected output, but now if boot a mainline 3.16 or 3.18 kernel (which mostly work with no device tree), these kernels fail to boot with a device tree.
What is the state of linux-ti-staging and how does it compare to linux-omap.. it seems like there is some sort of brokenness in moving the am3517 (omap3) support from the legacy code to device trees.
Quoted 10 lines · Troy Benjegerdes
Quoted 9 lines
Quoted 9 lines
After a little more digging around, I find that having:
#defineCONFIG_OF_LIBFDT
is required for u-boot to be able to recognize and load a device tree, but it does not seem to be set in the am3517 build(s).If I build a u-boot from source with
CONFIG_OF_LIBFDT, I get the expected output, but now if boot a mainline 3.16 or 3.18 kernel (which mostly work with no device tree), these kernels fail to boot with a device tree.
Quoted 4 lines
What is the state of linux-ti-staging and how does it compare to linux-omap.. it seems like there is some sort of brokenness in moving the am3517 (omap3) support from the legacy code to device trees.
linux-ti-staging recipe pulls from ti-linux-kernel on git.ti.com, which is the latest kernel development and upstreaming effort for all the current TI processors. Maintaining legacy parts like am3517 and omap3 in general is a best effort.
If by linux-omap you mean the actual kernel tree from Tony Lindgren, then it is one of the targets for patches staged in ti-linux-kernel to be upstreamed to, among others.
Signature · 1 line
Denys