Using LFS on i.MX6q SabreSD

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using LFS on i.MX6q SabreSD

1,077 Views
jeremyl_
Contributor I

Hello everyone,

I have the SabreSD board with the touchsreen and I've built the LFS from L3.0.35_4.0.0_130424_source.tar.gz package. I deploy it on the sd card with the MfgTool using the default u-boot and uImage delivered with the tool. After that, I restart the board to boot on the SD card but I have a message saying that the uImage can't be found so I configure manualy the u-boot env with commands found in the linux user guide (Listing 1). Everything is going fine till the "saveenv" command, it doesn't exist. To have this command, I start the board on the android's card, go to the u-boot prompt, change the SD card, rescan the mmc 2, configure the u-boot env and then save it but it doesn't work, i can't boot automaticaly to the LFS. But if I set the environment and then use "bootd" instead of "run bootcmd" I can boot on the SD card and login me in the serial console.

An other problem is I don't have the prompt on the LVDS, I have only in serial console, so I tried to configure the kernel with u-boot like in this thread (No display on SabreSD imx6 with u boot configuration) but it don't work, even with the ldb=dul0. It seems that the LVDS is connected to LVDS1 and not LVDS0.

So my questions is : what u-boot should I use ? (the u-boot built with the L3 package doen't work, and the same for the uImage) and what are the parameters to have the touchscreen as the main screen.

Thank you in advance,

Jérémy L.

Listing 1:

setenv loadaddr 0x10800000

setenv bootargs_base 'setenv bootargs console=ttymxc0,115200'

setenv bootargs_mmc 'setenv bootargs ${bootargs} root=/dev/mmcblk1p1 rootwait rw video=mxcfb1:dev=ldb,LDB-XGA,if=RGB666 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24'

setenv bootcmd_mmc 'run bootargs_base bootargs_mmc;mmc dev 2;mmc read ${loadaddr} 0x800 0x2000;bootm'

setenv bootcmd 'run bootcmd_mmc'

saveenv

run bootcmd

Labels (4)
0 Kudos
4 Replies

655 Views
LeonardoSandova
Specialist I

Are you booting Linux or Android? For Linux, You should use the u-boot (u-boot.bin) and Kernel (uImage) located in rootfs/boot. These images, and the rootfs folder is created by LTIB. The flashing procedure is on the User Guide.

Leo

655 Views
jeremyl_
Contributor I

Hi, I'm booting on linux and if i take the u-boot.bin and uImage from the rootfs/boot I have nothing like if i don't even put the SD card in the slot. And yes i used the rootfs generated by the ltib script as rootfs image. For flashing I used MfgTool as recommanded in some threads on this forum. In also tried the dd commands but same results.

Edit : I can boot with my uImage but still not with my u-boot. And i get the four Tux on the LVDS so I guess this part is okay now. Iused these parameters :

setenv bootargs_mmc 'setenv bootargs ${bootargs} root=/dev/mmcblk1p1 rootwait rw video=mxcfb1:dev=ldb,LDB-XGA,if=RGB24 ldb=dul0'

0 Kudos

655 Views
LeonardoSandova
Specialist I

Make sure you have chosen the correct u-boot's machine on the ltib's config. I usually place the SD card is on SD3 slot with 010000010 values on the dip switch.

Leo

0 Kudos

655 Views
jeremyl_
Contributor I

Hello !

For an unknown reason the board selected for u-boot changed drom mx6q_sabresd to mx6q_arm2 ... may be i didn't save the configuration correctly ! Now i have a fonctionnal système ! Thank you very much. I still have some troubles with the package, like Qt-embedded, it is looking on nokia servers and not qt-project but i can install it manualy so it's not a big issue.

Jérémy

0 Kudos