Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Built a file system, have a working kernel - how to login ?
@ 2012-11-17  8:22 Juha Lumme
  2012-11-17 10:11 ` Thomas Petazzoni
  0 siblings, 1 reply; 9+ messages in thread
From: Juha Lumme @ 2012-11-17  8:22 UTC (permalink / raw)
  To: buildroot

Hi,

I'm new to buildroot, and actually also to creating linux systems. I really
need help understanding some basics of how a system bring up should happen..
I have been working on a custom system of mine, running currently on a
reference HW from Olimex.

I have built a working kernel, and now I created a file system with
buildroot with all the settings default. Well, I did change the default
console to ttyAMA0, as that is passed to the kernel by the loader.

Now, the system boots up to the mounting filesystem, and then just hangs
there:
.....
[    3.130000] VFS: Mounted root (ext3 filesystem) on device 179:2.
[    3.140000] Freeing init memory: 144K
Starting logging: OK
Starting network...
ip: RTNETLINK answers: Operation not permitted
ip: SIOCSIFFLAGS: Permission denied

(The whole boot log is here: http://paste.ubuntu.com/1364407/ )

Can someone please educate me a bit what are the steps needed to get a
login prompt, and to be able to access the system ? I don't really
understand how the TTY links in /dev/ work, and how I need to tie them to
the kernel configuration..

My understanding is that inittab is the file I should modify.. Contents of
that is:
# Startup the system
null::sysinit:/bin/mount -t proc proc /proc
null::sysinit:/bin/mount -o remount,rw / # REMOUNT_ROOTFS_RW
null::sysinit:/bin/mkdir -p /dev/pts
null::sysinit:/bin/mkdir -p /dev/shm
null::sysinit:/bin/mount -a
null::sysinit:/bin/hostname -F /etc/hostname
# now run any rc scripts
::sysinit:/etc/init.d/rcS

# Put a getty on the sttyAMA0::respawn:/sbin/getty -L ttyAMA0 115200 vt100
# GENERIC_SERIAL

# Stuff to do for the 3-finger salute
::ctrlaltdel:/sbin/reboot

# Stuff to do before rebooting
null::shutdown:/etc/init.d/rcK
null::shutdown:/bin/umount -a -r
null::shutdown:/sbin/swapoff -a

Thank you for any advice or tips in advance!
Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20121117/3187a9ec/attachment.html>

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-11-18 20:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-17  8:22 [Buildroot] Built a file system, have a working kernel - how to login ? Juha Lumme
2012-11-17 10:11 ` Thomas Petazzoni
2012-11-17 11:07   ` Juha Lumme
2012-11-17 11:35     ` Thomas Petazzoni
2012-11-17 11:45       ` Juha Lumme
2012-11-17 12:07         ` Thomas Petazzoni
2012-11-17 13:17           ` Shawn Goff
2012-11-17 13:34             ` Juha Lumme
2012-11-18 20:11               ` Zoltan Gyarmati

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox