On 1/1/2014 11:15 PM, Carl-Fredrik Sundström wrote:
> 
> 
> I want to get started in kernel development for the BBB and I can't find 
> where to start, I have done work before developing Linux drivers for 
> network interface cards and TV tuner cards. Is there a document that 
> describes how to setup a cross compilation environment for lets say an 
> ubuntu workstation or any other mainstream distribution and step by step 
> how to build a bin file for flashing ?
> 
> I have looked at and can't find something like that

In part, that's because it's not really necessary to build a bin file
for flashing.  The BBB is much more like a desktop system than a
'traditional' embedded Linux board, and unless you're playing with the
uBoot loader, you don't really have to invoke any black magic or secret
sauce.

For kernel development, you can just drop a new kernel onto the FAT boot
partition and load it.  You can cross-build the kernel as usual, or if
you're not familiar with the process just grab RCN's linux-dev github
and it will do everything for you (including downloading a known-good
cross-compiler tool chain if you don't already have one installed).

To avoid pulling out too much hair while testing new kernels, I
recommend you obtain a serial port cable for the BBB, which lets you
interact with the uBoot loader and see all the boot messages.  Both can
be critical in figuring out why your shiny new kernel doesn't boot and
in recovering from this state.

Also, I find it easier to play with kernels when network booting or
booting from the SD card.  With both of these options you can easily
recover a non-booting system...if you mess up the kernel in the on-board
eMMC flash, it can be difficult to recover from.  If you're using an SD
card, you can just pop it into another system to fix the problem, and
with network booting, you don't even have to do that, you can just swap
kernel files around and reboot in seconds.

-- 
Charles Steinkuehler
[email protected]

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to