Debian GNU/Linux 5.0 (lenny) は armel に対応しているとのこと、
lenny ベースのハックキットを作ってみる。
lenny は、まだ正式リリースされていないけど。。。。
その3。lenny ベースのハックキットの作成、インストール、起動。
root@LS-CL701:~# cd /mnt/debinst root@LS-CL701:/mnt/debinst# ls bin etc media proc selinux tmp boot home mnt root srv usr dev lib opt sbin sys var root@LS-CL701:/mnt/debinst# tar zcvf /mnt/disk1/share/debian/hackkit_081121.tar.gz . : : ./tmp/ ./sys/ ./selinux/ ./srv/ ./opt/ ./media/ root@LS-CL701:/mnt/debinst#
root@LS-CL701:/mnt/disk1/share/debian# diff LS-CL_hackkit_0.01.sh LS-CL_hackkit_0.02.sh --- LS-CL_hackkit_0.01.sh Thu Nov 1 00:24:14 2007 +++ LS-CL_hackkit_0.02.sh Fri Nov 21 16:56:35 2008 @@ -12,7 +12,7 @@ JAIL=$MOUNTPOINT/usr/local/buffalo WORK=/mnt/disk1/share/debian -HACKKIT=$WORK/hackkit_080317.tar.gz +HACKKIT=$WORK/hackkit_081121.tar.gz #--------------------------------------------------------- # format root@LS-CL701:/mnt/disk1/share/debian#アーカイブのファイル名だけ。
root@LS-CL701:/mnt/disk1/share/debian# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/sda2 4993984 734424 4259560 15% / /dev/ram1 15360 108 15252 1% /mnt/ram /dev/sda1 996052 179868 816184 18% /boot /dev/disk1_6 480348928 133004 480215924 0% /mnt/disk1 /dev/usbdisk1_1 194442 14628 169775 8% /mnt/usbdisk1 root@LS-CL701:/mnt/disk1/share/debian# umount /mnt/usbdisk1/ root@LS-CL701:/mnt/disk1/share/debian# root@LS-CL701:/mnt/disk1/share/debian# sh LS-CL_hackkit_0.02.sh formating hard drive ... mke2fs 1.40.5 (27-Jan-2008) Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) : : : creating miconapl ... creating usb ... creating kernelmon ... creating network_interfaces ... creating resolv.conf ... creating hosts ... creating hostname ... root@LS-CL701:/mnt/disk1/share/debian#
: : ---- in modified linuxrc --- umount: cannot open /proc/mounts XFS mounting filesystem sda2 VFS: Mounted root (xfs filesystem). Trying to move old root to /initrd ... /initrd does not exist. Ignored. Unmounting old root Trying to free ramdisk memory ... okay Freeing init memory: 120K modprobe: FATAL: Could not load /lib/modules/2.6.22.7/modules.dep: No such file or directory INIT: version 2.86 booting Setting the system clock. Cannot access the Hardware Clock via any known method. Use the --debug option to see the details of our search for an access method. Unable to set System Clock to: Thu Jan 1 09:00:08 JST 1970 (warning). Activating swap...Adding 257032k swap on /dev/sda3. Priority:-1 extents:1 across:257032k done. Setting the system clock. Cannot access the Hardware Clock via any known method. Use the --debug option to see the details of our search for an access method. Unable to set System Clock to: Thu Jan 1 09:00:09 JST 1970 (warning). Cleaning up ifupdown.... Loading kernel modules...FATAL: Could not load /lib/modules/2.6.22.7/modules.dep: No such file or directory Checking file systems...fsck 1.41.3 (12-Oct-2008) fsck: cannot check /dev/sda4: fsck.xfs not found /dev/sda1: Superblock last mount time is in the future. FIXED. /dev/sda1: Superblock last write time is in the future. FIXED. /dev/sda1 has filesystem last checked time in the future, check forced. /dev/sda1: 13/50200 files (15.4% non-contiguous), 20978/200780 blocks fsck died with exit status 1 done. Setting kernel variables (/etc/sysctl.conf)...done. Mounting local filesystems...kjournald starting. Commit interval 5 seconds EXT3 FS on sda1, internal journal EXT3-fs: mounted filesystem with ordered data mode. XFS mounting filesystem sda4 done. Activating swapfile swap...done. Setting up networking.... Configuring network interfaces...eth reg(9) val=0x0300 eth0: link down done. INIT: Entering runlevel: 2 Starting enhanced syslogd: rsyslogd. insmod: can't read '/lib/modules/*/kernel/drivers/usb/core/usbcore.ko': No such file or directory insmod: can't read '/lib/modules/*/kernel/drivers/usb/host/ehci-hcd.ko': No such file or directory insmod: can't read '/lib/modules/*/kernel/drivers/usb/host/ohci-hcd.ko': No such file or directory eth0: link up, full duplex, speed 1 Gbps insmod: can't read '/lib/modules/*/kernel/drivers/usb/host/uhci-hcd.ko': No such file or directory insmod: can't read '/lib/modules/*/kernel/drivers/usb/storage/usb-storage.ko': No such file or directory insmod: can't read '/lib/modules/*/kernel/drivers/usb/class/usblp.ko': No such file or directory insmod: can't read '/lib/modules/*/kernel/fs/fat/fat.ko': No such file or directory insmod: can't read '/lib/modules/*/kernel/fs/vfat/vfat.ko': No such file or directory Starting internet superserver: inetd. Starting periodic command scheduler: crond.ここで止まった。
まあ、そんなにうまく行くはずはない。
|
← debootstrap で作ったツリーのセットアップ |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ lenny + armel のハックキットの修正 |