[Buildroot] Some Questions - root placement, Initramfs, dev nodes
Peter Korsgaard
jacmet at uclibc.org
Sat Jan 24 08:05:51 UTC 2009
>>>>> "Andrew" == Andrew Wiley <debio264 at gmail.com> writes:
Hi,
Andrew> What's the normal approach to this? The board I'm working
Andrew> with is being used for robotics projects by beginner
Andrew> programmers, so I would like to have as complete a system as
Andrew> possible to make programming simpler. Ideally, the board
Andrew> would be it's own development system, with a native compiler
Andrew> toolchain. Is this a realistic goal? Have I understood the
Andrew> initramfs correctly? How would I set up something like this?
With initramfs you still waste RAM to store your files. The most
common approach is to put a file system in flash - E.G. jffs2 if you
need read/write access, and squashfs for read only (notice you need a
kernel patch for squashfs).
For development it's probably easier to boot over nfs (see the tarball
image option in buildroot).
Getting native compilation running with 16MB is pretty unrealistic though.
Andrew> Also, my board has two serial ports, ttyAM0 and ttyAM1. I
Andrew> copied the /dev nodes from the official Cirrus Labs firmware
Andrew> (I sent another email about this a while back), and while
Andrew> ttyAM0 works perfectly, ttyAM1 doesn't seem to respond to
Andrew> anything I do. Programs can open the port, set speeds, and
Andrew> write to it without errors, but these actions have no
Andrew> effect. As I said, I've never had to work without uDev, so
Andrew> how do I find the major and minor information for this serial
Andrew> port?
Have a look at contents of /sys/class/tty/ttyAMx/dev or check the
kernel driver.
Andrew> Thanks for any help you can offer, and feel free to tell me I'm a
Andrew> clueless idiot,
No worries ;)
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list