Page 3 of 5
Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Posted:
Fri Mar 21, 2014 6:49 am
by updatelee
Worked, thanks. ethernet now works in 3.10.17
Havent patched u-boot yet.
UDL
Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Posted:
Fri Mar 21, 2014 3:49 pm
by NeuerUser
I would be greatful if someone could share his work, so that I can test it on my Matrix. I have a special MiniPCIe card, which I need to test, if it works correctly under kernel 3.10.17. I would be great, if I could test it at least once. It will certainly take a couple of weeks for me to learn how the whole u-boot and Yocto thing works...
Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Posted:
Fri Mar 21, 2014 4:13 pm
by NeuerUser
Or, alternatively, could somebody give me some help with instructions?
- I can download Yocto, but there are many git repositories. Do I need the official repository only? Or something from somewhere else?
- Which layers do I need? I understand there are many layers to choose from, right? The BSP is one layer, or? Which BSP do I need? imx6qsabreSD?
- What target would I need to bitbake? Is it just one target or do I need to bitbake more targets?
- Do I need any special patches that are not automatically included?
- How would I flash the new u-boot, if it works?
It's really not that I am asking for prebuilt binaries, because I am too lazy. It is really difficult to get into this stuff. I would really like to. That's why I am asking for some help.
Thanks!
Michael
Btw.: Is a great board! Would be nice to test debian-jessi on this board.
Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Posted:
Fri Mar 21, 2014 11:00 pm
by updatelee
I can try and type something up when I get home.
UDL
Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Posted:
Sat Mar 22, 2014 3:20 am
by NeuerUser
Thanks, that would be great.
Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Posted:
Sat Mar 22, 2014 8:54 am
by updatelee
mkdir yocto
cd yocto
curl
http://commondatastorage.googleapis.com ... loads/repo > ./repo
./repo init -u
https://github.com/Freescale/fsl-community-bsp-platform -b master-next
./repo sync
MACHINE=imx6qsabresd source ./setup-environment build
bitbake fsl-image-gui
once it's all done everything you need will be in tmp/deploy/images/imx6qsabresd/
if you make a change to u-boot and want to recompile it
bitbake -c compile u-boot
bitbake -c deploy u-boot
same for linux-imx
UDL
Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Posted:
Sat Mar 22, 2014 2:21 pm
by NeuerUser
Thanks, gonna try that today.
We also need the two patches Milan mentioned. Do you have a link to the 3.14 patch that needs to be backported?
Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Posted:
Sat Mar 22, 2014 8:34 pm
by NeuerUser
Looked through the mainline kernel commits, but couldn't find any commit with ar8085 in the description. Where did you find the patch necessary for Ethernet?
Btw , why did you choose master-next as branch and not dora?
Currently compiling, halfway through...
Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Posted:
Sun Mar 23, 2014 10:07 pm
by updatelee
The ar8035 patch I posted in this thread just a little higher up.
viewtopic.php?f=156&t=8786&start=20#p30846Here is the u-boot patch, you only need this is you need ethernet in u-boot, ie tftp
UDL
Re: How to boot from MicroSD/SD slot (?) - Ubuntu 13.10/K3.1

Posted:
Sun Mar 23, 2014 11:19 pm
by NeuerUser
Thanks for the patches (sorry, overlooked the first one).
I finished compiling yocto yesterday (did the u-boot patch myself). I was able to load u-boot via recovery boot and then to boot the default tvmatrix on the mmc. So far, so good.
However, I was not able to get network in u-boot with the patch (maybe I did something wrong?). I also had only 1GB of RAM available. And, I had two times severe crashes in u-boot, when I changed some env variables and the used "printenv".
Is this just my fault? Does network work for you? Do you have 1GB or 2GB of RAM available?
Cheers
Michael