View Single Post
Old 01-04-2016, 08:09 PM   #41
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by nigredo View Post
Hi knc1,

I'm considering to build a minimal kernel for imx5/6 and initramfs which should do :
load the g_ether module to enable usbnet, run sshd/dropbear.

The problem is uboot. Buildroot brags "use make uboot-menuconfig", but unfortunately this target doesn't exist... The OCRAM is only 128k, if at all, eureka suspects it is even less, but the one BR built is more than 250k.

The uboot-fastboot developed by eureka it is more suited as start point, I'll try to remove the flash part and enable the part to load the kernel+initramfs.
There are a couple other things to consider -
To use Amazon's source (recommended), you will have to use "source dir override" so you can un-pack their u-boot source (2009-08 IIRC) into a local dir rather than let BR download the current.

I don't think eureka ever put his changes in a public repo -
Although he/she did post the diff files here.

I would:
Download the 5.6.1.1 source code tarball from Amazon it runs on both the PW1 (i.MX5) and the PW3 (i.MX6), perhaps not the same build, but the same source code release.

Init the directory tree made by the u-boot tarball as a local git repo.

Then checkout a branch -

Then apply eureka's diff -

Use git features to do the merge -

Then work with that (which, when your satisfied with it,) can be used as the target of a source dir override.

The advantages of working under source control + the advantages of using an automated build system for anything non-customized.

There is also some trick to declaring that BR should use the u-boot .config in the external directory.

The on-line user's manual is the key document.
knc1 is offline   Reply With Quote