Thursday, June 17, 2010

Chapter 8 The Kernel!

I hope this goes better than Chapter 7. I wonder how much of the network stuff could have been left out until the system setup was ok.


cat > /etc/fstab << "EOF"
# Begin /etc/fstab

# file system  mount-point  type   options         dump  fsck
#                                                        order

/dev/sdb6     /            ext3  defaults        1     1
/dev/sdb5     swap         swap   pri=1           0     0
proc           /proc        proc   defaults        0     0
sysfs          /sys         sysfs  defaults        0     0
devpts         /dev/pts     devpts gid=4,mode=620  0     0
tmpfs          /dev/shm     tmpfs  defaults        0     0
# End /etc/fstab
EOF
 
This is interesting.
Filesystems with MS-DOS or Windows origin (i.e.: vfat, ntfs, smbfs, cifs, iso9660, udf) need the “iocharset” mount option in order for non-ASCII characters in file names to be interpreted properly.
I guess that this will help the spaces prolem in Windows.

root:/sources/linux-2.6.32.8# echo $LANG
nl_NL.ISO-8859-1@euro

Therefore,
  make LANG=nl_NL.ISO-8859-1@euro LC_ALL=menuconfig

And I get...

*** You have not yet configured your kernel!
*** (missing kernel config file ".config")
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
That's encouraging. But I notice that I have not run any configure.

#make oldconfig

Press enter for everything, choose Athlon/Duron (#12 in list ) as processor
WIFI I said no to, touchscreen, no.  I have no idea really what all the commands were. That's annoying.

#make

 Output at end




Root device is (8, 22)
Setup is 11756 bytes (padded to 11776 bytes).
System is 4068 kB
CRC 94875ed3
Kernel: arch/x86/boot/bzImage is ready  (#1)
  Building modules, stage 2.
  MODPOST 2 modules
  CC      arch/x86/kernel/test_nx.mod.o
  LD [M]  arch/x86/kernel/test_nx.ko
  CC      drivers/scsi/scsi_wait_scan.mod.o
  LD [M]  drivers/scsi/scsi_wait_scan.ko
I do not know if this is necessary, so feeling reckless,
root:/sources/linux-2.6.32.8# make modules_install
  INSTALL arch/x86/kernel/test_nx.ko
  INSTALL drivers/scsi/scsi_wait_scan.ko
  DEPMOD  2.6.32.8
Next,
root:/sources/linux-2.6.32.8# cp -v arch/x86/boot/bzImage /boot/vmlinux-2.6.32.8-lfs-6.6

root:/sources/linux-2.6.32.8# cp -v System.map /boot/System.map-2.6.32.8
root:/sources/linux-2.6.32.8# cp -v .config /boot/config-2.6.32.8
(saved a copy of this on home partition)
root:/sources/linux-2.6.32.8# install -d /usr/share/doc/linux-2.6.32.8
root:/sources/linux-2.6.32.8# cp -r Documentation/* /usr/share/doc/linux-2.6.32.8

root:/sources# chown -R 0:0 linux-2.6.32.8
Also configured the module boot order, although at this point I really have no clue.

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Writing after Chapter 9 completed, it seems likely that this section might be the cause of the kernel errors. I will re-evaluate what I did.

    ReplyDelete