-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generation and Programming guide step by step #2
Comments
Hi Joel,
unfortunately thud distro don't contain NAND images generation. Please
take a sumo distro of Yocto. The images is quite good. Unfortunately I
have no idea how to program them to NAND. One way is to run Linux from
nfs and somehow program NAND into rootfs. I have no idea how to program
NAND from U-Boot level. You can check how it is done in Colibri for
instance. You can also copy some parts related with NAND(sumo) from
meta-somlabs/conf/machine/visionsom6ull.conf to thud and than compile,
should works. NAND images are generated well, please remember to take my
U-Boot 09.2018. I try to correct Yocto meta layer to be more consistent.
It will be ready soon.
You can check what I prepared
http://www.emsyslabs.com/somlabs-nand-programming/
but after programming system don't starts. I also need help in it.
PS. I'm not working with SomLabs manufacturer, it is just hobby now.
Best Regards
Michal Wolowik
On 03.07.2019 22:19, Joel wrote:
Hello,
I'm iMX6ULL with NAND module user and I try to generate and load my
SOM with Yocto and uuu tools. Actually I'm totally lost because of no
help, and it seems I need some files which are not generated by yocto
when building the image with your meta.
*Please, can you provide a complete step by step programming guide
that indicate how to generate and load the system, particularly for
the case of NAND modules ?*
I have made several testing and currently it seems only the sumo
branch is able to build for NAND device according to the machine
definition. However, the config file
'somlabs_visionsom_6ull_nand_config' indicated does not exist, your
meta is not consistent.
I can help to make some testing if you have only a draft today. Please
tell me how I can help on this.
Regards,
Joel
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2?email_source=notifications&email_token=AB3RWPVSF6KDY6NSZWHQOKTP5UCTTA5CNFSM4H5JIIP2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G5HDBFA>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB3RWPURXFG3MHJQK423VCDP5UCTTANCNFSM4H5JIIPQ>.
--
Best Regards
Michal Wolowik
|
Hello Michal, Thanks for your quick answer. I have seen your page http://www.emsyslabs.com/somlabs-nand-programming/ already, but when you reach the end, how do you continue the programming of the SOM ? I mean kernel, dtb, rootfs... all in the NAND. Thanks again, |
Hello @voloviq I made some progress, I have patched some part of the meta to generate "core-image-minimal" and "fsl-image-mfgtool-initramfs" images. I have u-boot, kernel, dtb, initramfs, rootfs. I'm currently trying to burn the system with "imx_usb_loader" and "utp_com", I'm not sure what to do to flash the NAND. I try to follow this tutorial: https://community.nxp.com/thread/441563 Have you already played with that ? Thanks to share your experience, |
Hi Joel,
I created 'warrior' distro of Yocto, compiled well. I think I create a
few configuration file separately for sdcard, nand and emmc. Do You have
some progress about NAND programming? I think I can upload it soon to
gitlab.
Best Regards
MIchal
On 11.07.2019 00:36, Joel wrote:
Hello @voloviq <https://github.com/voloviq>
I made some progress, I have patched some part of the meta to generate
"core-image-minimal" and "fsl-image-mfgtool-initramfs" images. I have
u-boot, kernel, dtb, initramfs, rootfs.
I'm currently trying to burn the system with imx_usb_loader and
utp_com, I'm not sure what to do to flash the NAND.
I also add a look to uuu, there is an example script provided that I'm
using. It starts but then wait definitively...
Have you already played with that ?
Thanks to share your experience,
Joel
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2?email_source=notifications&email_token=AB3RWPSHCSPEKTSJPUOJBMDP6ZP7TA5CNFSM4H5JIIP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZU6MIY#issuecomment-510256675>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB3RWPSZHTWFOPYV5AQNNA3P6ZP7TANCNFSM4H5JIIPQ>.
--
Best Regards
Michal Wolowik
|
Hello Michal,
Probably one machine per configuration ? That should be great ! Also please, separate everything that is not necessary to build a very minimal image that is working. I think to the distro, to QT and some lab images, etc. Just put them in a new layer "meta-somlabs-extended" for example.
Yes and no. I have just found https://wiki.somlabs.com/index.php/How_to_write_image_to_VisionSOM-6ULL_NAND_memory_using_UUU_tool_on_Linux and https://wiki.somlabs.com/index.php/How_to_write_image_to_VisionSOM-6ULL_NAND_memory_using_UUU_tool_on_Windows, where a specific version of uuu is provided (without the sources which is probably not respecting the licence!!!) but it fails. The page have honestly some errors, but I managed to start flashing. Here are some logs: On the host Linux computer (ubuntu 16.04):
At the same time on the target: We can see several errors:
Seems the software does not found the NAND I don't know why... (does the uuu tool expect the correct NAND model ?) If you want to have a look too, that's welcome, maybe the eyes of somebody else will see something else :) I wonder also : how SomLabs have flashed the NAND in factory ? That can be a solution but there is no information. Joel, still on going... EDIT: sometimes NAND is detected according to u-boot logs but this terminates with the same error |
I think You have a uboot without NAND support. Please try to use my uboot 2018.09. It is not perfect but NAND is supported and found. Uboot is available from https://github.com/SoMLabs/somlabs-uboot-imx/tree/2018.09 branch 2018.09. |
Yes, SomLabs have some procedure but it is very difficult and needs to run rootfs from RAM or USB flash drive. I had the opportunity to test it but sometimes works sometimes don't. If you want this procedure please ask the manufacturer. |
I just finally succeeded with u-boot provided in the uuu toturial !
My generated rootfs has no kernel/dtb/boot.scr so this is something to be corrected. I will try again with the u-boot branch 2018.09 and tell you. Joel |
Result : with 2018.09 the loading does only step 1/9, and then block. Working loading:
2018.09 build with yocto:
Do you know the 2018.03 version which is used in somlabs uuu tutorial ? |
No, I don't use version 2018.03 of UBoot. So based on Your above description I guess that You succeed with programming NAND in UBoot environment? |
This 2018.03 version seems to work well. Sometimes the NAND is not detected, but it succeed to flash the NAND with the uuu version provided by somlabs. |
That now loaded and working !!! I have:
The board must be started in "SERIAL" mode to allow programming over USB (not the USB port of the serial console, but the USB port on the iMX itself). I'm facing an issue at the boot before getting the prompt:
And then the system is blocked, it does not continue. Maybe you are aware and have a solution if you already know this ? The linux version is linux-imx 4.9.88. One remark: the rootfs contains the 6 dtb. That's not very convenient and it will be cleaner if 6 machines are defined in the conf. It is possible to have one inc file to include in the machine to declare all the common elements, and then to specify each of them (dtb, u-boot config) in the machine itself. Then one question more general: I understood you are not from SomLabs, but you contribute to these repositories on github. Are you the owner of the SomLabs account on github ? Do you know where the https://github.com/SoMLabs/somlabs-uboot-imx comes from ? Is it really working ? |
Just read this issue SoMLabs/somlabs-uboot-imx#3, it's the same problem I have with the u-boot generated with yocto. |
Hi @voloviq |
No problem, we go back to it later. |
Okay, starting again some testing... |
@voloviq and @QB4-dev I have now something that is working with my 6ULL-NAND module. I have attached the state of the meta to this message: meta-somlabs.zip Several notes:
Some things I have not understood:
Not tested:
Joel EDIT: For the 6ULL versions, 8 machines should be define to correspond to the 8 references available from somlabs (https://www.mouser.fr/_/?Keyword=somlabs+sls16&FS=True). 6UL version seems not available at all, isn't it ? |
@voloviq ping :) If you can answer to my previous question about the direction where you go it's fine! Else I will propose my own -minimal- somlabs meta layer on my github. If you have some ideas for u-boot it's great too! |
Totally agree with you Joel, meta-somlabs layer should be only base for custom projects. This device tree descriptions in current meta-somlabs are made only for this board
Also agree. Currently our company is finishing first project with somlabs board, because of this mix in meta-somlabs I made my own layer with recipes that I needed copied from meta-somlabs. It would be great to get minimal meta-somlabs layer with your philosophy which may be added to every project based on Somlabs boards |
@QB4-dev thanks, we share the same vision! |
Sorry Guys PS. Please ask the manufacturer to give you access to this git. Best Regards |
Thanks @voloviq for your message, no worries, check when you have more time ! Joel EDIT: message to somlabs done to understand where are the sources of u-boot that are working. Waiting the answer. |
@QB4-dev I'm working on a simplified dtsi common to all config, but if you have also one you want to share, that's very nice. We can share on this to have the right content. |
Hello all, if you are still looking for somlabs u-boot sources - it's on github: Regards |
Hello Arek, Thanks, I know that. Can you detail which commit is to be used for NAND module version ? That's the main problem today. Joel |
Please use branch : imx_v2018.03_4.14.98_2.0.0_ga Regards |
Thanks. This branch does not properly exists on https://github.com/SoMLabs/somlabs-uboot-imx |
Hello Jeol, Regards |
This branch has two defconfig:
Are they compatible with all the targets ? (eMMC/SD/NAND) ? Joel |
Just tried:
|
Yes, both. One with fastboot in name is used to build binary used by uuu to
flash board. Normaly you don't need to build it by your own if you use uuu
from somlabs. Other configuration is default bootloader used in normal
boot. It recognizes boot source and configures interfaces accordingly.
Regards
Arek
czw., 22 sie 2019, 23:00 użytkownik Joel <[email protected]> napisał:
… This branch has two defconfig:
- somlabs_visionsom_6ull_defconfig
- somlabs_visionsom_6ull_fastboot_defconfig
Are they are compatible with all the targets ? (eMMC/SD/NAND) ?
Joel
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2?email_source=notifications&email_token=AI257FMRNU2T5V34APQG6O3QF35ALA5CNFSM4H5JIIP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD46MFKY#issuecomment-524075691>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AI257FLT3PR7AXIZQAECWMDQF35ALANCNFSM4H5JIIPQ>
.
|
Can you share logs? Do you force board to serial downloader mode?
czw., 22 sie 2019, 23:12 użytkownik Joel <[email protected]> napisał:
… Just tried:
- to build with "somlabs_visionsom_6ull_defconfig", I get a u-boot
binary of size 601088 Bytes, while vsom-6ull-fb.bin is 687104 Bytes....
- loading with uuu does not start at all, it blocks at the end of step
1
I'm using NAND 512MB module with WiFi.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2?email_source=notifications&email_token=AI257FJWKDDLD5QT2NGKCQLQF36LTA5CNFSM4H5JIIP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD46NEXA#issuecomment-524079708>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AI257FPCVSJCO3WCEQTE5O3QF36LTANCNFSM4H5JIIPQ>
.
|
I try to rebuild ALL the binaries. I would like to not use the binary from somlabs.
How is ti flashed on the target ? Actually I flash with I understand "vsom-6ull-fb.bin" should be build with "somlabs_visionsom_6ull_fastboot_defconfig", right ? seems logic, actuazly I have log "Unknown command 'fastboot'" in the terminal. Yes I'm in serial mode, flashing throw USB (no Ethernet). |
Okay new status ! Just build with "somlabs_visionsom_6ull_fastboot_defconfig", I have now a binary which is working !!!! I succeed to load my image in the nand with the uuu version provided n the somlabs ftp, and with my own "vsom-6ull-fb.bin" During the flashing, this is my u-boot version which is used (build date is displayed) and during the normal boot, this is the same ! HAPPY ! :D |
Thanks so much to @arekkaras I have something really nice now! I'm working on linux-imx recipes now because freescale recipes do not support fragments... trying to implement something. https://community.nxp.com/message/1190622 |
Hello guys |
@myfreescalewebpage Man, you are awesome! I will test your layer soon. Thank you very much |
@QB4-dev thanks :) Still making stuff on it but the current version is fully functional actually. |
Hello,
I'm iMX6ULL with NAND module user and I try to generate and load my SOM with Yocto and uuu tools. Actually I'm totally lost because of no help, and it seems I need some files which are not generated by yocto when building the image with your meta.
Please, can you provide a complete step by step programming guide that indicate how to generate and load the system, particularly for the case of NAND modules ?
I have made several testing and currently it seems only the sumo branch is able to build for NAND device according to the machine definition. However, the config file 'somlabs_visionsom_6ull_nand_config' indicated does not exist, your meta is not consistent.
I can help to make some testing if you have only a draft today. Please tell me how I can help on this.
Regards,
Joel
The text was updated successfully, but these errors were encountered: