Home > tags> Linux
Linux
Rebuilding the kernel [KuroBox]
- July 4, 2011 12:00 AM
- Built environment | recording
To create a 2.6.25.20Linux kernel of (unmarked) can be used in the first KuroBox U-Boot.
First, install the program needed to compile.
KURO-BOX:/usr/src# aptitude install patch KURO-BOX:/usr/src# aptitude install libncurses-dev KURO-BOX:/usr/src# aptitude install bzip2 KURO-BOX:/usr/src# aptitude install module-init-tools Next, download the source, unpack.
KURO-BOX:/usr/src# wget http://www.genbako.com/kurobox-sources-2.6.25.patch KURO-BOX:/usr/src# wget http://www.genbako.com/kurobox-section-mismatch2625.patch KURO-BOX:/usr/src# wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.25.20.tar.bz2 KURO-BOX:/usr/src# tar -jxpvf linux-2.6.25.20.tar.bz2 Next, apply a patch.
KURO-BOX:/usr/src# cd linux-2.6.25.20 KURO-BOX:/usr/src/linux-2.6.25.20# patch -Np1 < ../kurobox-section-mismatch2625.patch KURO-BOX:/usr/src/linux-2.6.25.20# patch -Np1 < ../kurobox-sources-2.6.25.patch Next, the preparation.
KURO-BOX:/usr/src/linux-2.6.25.20# export ARCH=ppc KURO-BOX:/usr/src/linux-2.6.25.20# cp config_kurobox .config KURO-BOX:/usr/src/linux-2.6.25.20# make oldconfig Important here to configure the kernel.
KURO-BOX:/usr/src/linux-2.6.25.20# make menuconfig Networking > Networking options <*> Packet socket [*] Packet socket: mmapped IO <*> Unix domain sockets < > Transformation user configuration interface [ ] Transformation sub policy support (EXPERIMENTAL) [ ] Transformation migrate database (EXPERIMENTAL) [ ] Transformation statistics (EXPERIMENTAL) <M> PF_KEY sockets [ ] PF_KEY MIGRATE (EXPERIMENTAL) (NEW) [*] TCP/IP networking [*] IP: multicasting [*] IP: advanced router Choose IP: FIB lookup algorithm (choose FIB_HASH if unsurx x [*] IP: policy routing [ ] IP: equal cost multipath (NEW) [ ] IP: verbose route monitoring (NEW) [ ] IP: kernel level autoconfiguration <M> IP: tunneling <M> IP: GRE tunnels over IP [*] IP: broadcast GRE over IP [*] IP: multicast routing [*] IP: PIM-SM version 1 support [*] IP: PIM-SM version 2 support [ ] IP: ARP daemon support (EXPERIMENTAL) [ ] IP: TCP syncookie support (disabled per default) <M> IP: AH transformation <M> IP: ESP transformation <M> IP: IPComp transformation <*> IP: IPsec transport mode <*> IP: IPsec tunnel mode <*> IP: IPsec BEET mode < > Large Receive Offload (ipv4/tcp) <*> INET: socket monitoring interface [ ] TCP: advanced congestion control ---> [*] TCP: MD5 Signature Option support (RFC2385) (EXPERIMENTAL) < > IP virtual server support (EXPERIMENTAL) (NEW) ---> < > The IPv6 protocol [ ] Security Marking [*] Network packet filtering framework (Netfilter) ---> [*] Network packet filtering debugging [*] Advanced netfilter configuration (NEW) [*] Bridged IP/ARP packets filtering (NEW) Core Netfilter Configuration ---> <M> Netfilter NFQUEUE over NFNETLINK interface <M> Netfilter LOG over NFNETLINK interface <M> Netfilter connection tracking support -*- Connection tracking flow accounting -*- Connection mark tracking support [*] Connection tracking events <M> SCTP protocol connection tracking support (EXPERIMENTAL) <M> UDP-Lite protocol connection tracking support <M> Amanda backup protocol support <M> FTP protocol support <M> H.323 protocol support <M> IRC protocol support <M> NetBIOS name service protocol support <M> PPtP protocol support <M> SANE protocol support (EXPERIMENTAL) <M> SIP protocol support <M> TFTP protocol support <M> Connection tracking netlink interface {M} Netfilter Xtables support (required for ip_tables) <M> "CLASSIFY" target support <M> "CONNMARK" target support <M> "DSCP" and "TOS" target support <M> "MARK" target support <M> "NFQUEUE" target Support <M> "NFLOG" target support <M> "NOTRACK" target support -M- "RATEEST" target support <M> "TRACE" target support <M> "TCPMSS" target support <M> "TCPOPTSTRIP" target support (EXPERIMENTAL) <M> "comment" match support <M> "connbytes" per-connection counter match support <M> "connlimit" match support" <M> "connmark" connection mark match support <M> "conntrack" connection tracking match support <M> "dccp" protocol match support <M> "dscp" and "tos" match support <M> "esp" match support <M> "helper" match support <M> "iprange" address range match support <M> "length" match support <M> "limit" match support <M> "mac" address match support <M> "mark" match support <M> "owner" match support <M> IPsec "policy" match support <M> "multiport" Multiple port match support <M> "physdev" match support <M> "pkttype" packet type match support <M> "quota" match support <M> "rateest" match support <M> "realm" match support <M> "sctp" protocol match support (EXPERIMENTAL) <M> "state" match support <M> "statistic" match support <M> "string" match support <M> "tcpmss" match support <M> "time" match support <M> "u32" match support <M> "hashlimit" match support IP: Netfilter Configuration ---> <M> IPv4 connection tracking support (required for NAT) [*] proc/sysctl compatibility with old connection tracking (NEW) <M> IP Userspace queueing via NETLINK (OBSOLETE) <M> IP tables support (required for filtering/masq/NAT) <M> "recent" match support <M> "ecn" match support <M> "ah" match support <M> "ttl" match support <M> "addrtype" address type match support <M> Packet filtering <M> REJECT target support <M> LOG target support <M> ULOG target support <M> Full NAT <M> MASQUERADE target support <M> REDIRECT target support <M> NETMAP target support <M> Basic SNMP-ALG support <M> Packet mangling <M> ECN target support <M> TTL target support <M> CLUSTERIP target support (EXPERIMENTAL) <M> raw table support (required for NOTRACK/TRACE) <M> ARP tables support <M> ARP packet filtering <M> ARP payload mangling Bridge: Netfilter Configuration ---> <M> Ethernet Bridge tables (ebtables) support <M> ebt: broute table support <M> ebt: filter table support <M> ebt: nat table support <M> ebt: 802.3 filter support <M> ebt: among filter support <M> ebt: ARP filter support <M> ebt: IP filter support <M> ebt: limit match support <M> ebt: mark filter support <M> ebt: packet type filter support <M> ebt: STP filter support <M> ebt: 802.1Q VLAN filter support <M> ebt: arp reply target support <M> ebt: dnat target support <M> ebt: mark target support <M> ebt: redirect target support <M> ebt: snat target support <M> ebt: log support <M> ebt: ulog support (OBSOLETE) < > The DCCP Protocol (EXPERIMENTAL) ---> < > The SCTP Protocol (EXPERIMENTAL) ---> < > The TIPC Protocol (EXPERIMENTAL) ---> < > Asynchronous Transfer Mode (ATM) <M> 802.1d Ethernet Bridging <M> 802.1Q VLAN Support < > DECnet Support < > ANSI/IEEE 802.2 LLC type 2 Support < > The IPX protocol < > Appletalk protocol support < > CCITT X.25 Packet Layer (EXPERIMENTAL) < > LAPB Data Link Driver (EXPERIMENTAL) < > Acorn Econet/AUN protocols (EXPERIMENTAL) < > WAN router [ ] QoS and/or fair queueing ---> Network testing ---> Networking > Wireless {*} Improved wireless configuration API [*] nl80211 new netlink interface support (NEW) -*- Wireless extensions <M> Generic IEEE 802.11 Networking Stack (mac80211) Rate control algorithm selection ---> [ ] Enable packet alignment debugging (NEW) [ ] Enable debugging output (NEW) {M} Generic IEEE 802.11 Networking Stack (DEPRECATED) [ ] Enable full debugging output (NEW) -M- IEEE 802.11 WEP encryption (802.1x) < > IEEE 802.11i CCMP support (NEW) < > IEEE 802.11i TKIP encryption (NEW) < > Software MAC add-on to the IEEE 802.11 networking stack (NEW) Device Drivers > Networking device support [ ] Netdevice multiple hardware queue support <M> Dummy net driver support < > Bonding driver support < > MAC-VLAN support (EXPERIMENTAL) < > EQL (serial line load balancing) support <M> Universal TUN/TAP device driver support < > Virtual ethernet pair device < > ARCnet support ---> < > PHY Device support and infrastructure ---> [*] Ethernet (10 or 100Mbit) ---> [*] Ethernet (1000 Mbit) ---> [ ] Ethernet (10000 Mbit) ---> [ ] Token Ring driver support ---> Wireless LAN ---> [ ] Wireless LAN (pre-802.11) [*] Wireless LAN (IEEE 802.11) < > Intel PRO/Wireless 2100 Network Connection (NEW) < > Intel PRO/Wireless 2200BG and 2915ABG Network Connection (NEW) < > Marvell 8xxx Libertas WLAN driver support (NEW) < > Cisco/Aironet 34X/35X/4500/4800 ISA and PCI cards (NEW) <M> Hermes chipset 802.11b support (Orinoco/Prism2/Symbol) < > Hermes in PLX9052 based PCI adaptor support (Netgear MA30 < > Hermes in TMD7160 based PCI adaptor support (NEW) < > Nortel emobility PCI adaptor support (NEW) < > Prism 2.5 PCI 802.11b adaptor support (NEW) < > Atmel at76c50x chipset 802.11b support (NEW) < > Intersil Prism GT/Duette/Indigo PCI/Cardbus (NEW) <M> USB ZD1201 based Wireless device support < > Wireless RNDIS USB support (NEW) < > Realtek 8180/8185 PCI support (NEW) <M> Realtek 8187 USB support < > ADMtek ADM8211 support (NEW) < > Softmac Prism54 support (NEW) < > Atheros 5xxx wireless cards support (NEW) < > Intel Wireless WiFi 4965AGN (NEW) < > Intel PRO/Wireless 3945ABG/BG Network Connection (NEW) <M> IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP) [*] Support downloading firmware images with Host AP driver [*] Support for non-volatile firmware download < > Host AP driver for Prism2/2.5/3 in PLX9052 PCI adaptors < > Host AP driver for Prism2.5 PCI adaptors (NEW) < > Broadcom 43xx wireless support (mac80211 stack) (NEW) < > Broadcom 43xx-legacy wireless support (mac80211 stack) (NEW) <M> ZyDAS ZD1211/ZD1211B USB-wireless support [*] ZyDAS ZD1211 debugging < > Ralink driver support (NEW) USB Network Adapters ---> < > USB CATC NetMate-based Ethernet device support (EXPERIMENTAL) < > USB KLSI KL5USB101-based ethernet device support < > USB Pegasus/Pegasus-II based ethernet device support <M> USB RTL8150 based ethernet device support (EXPERIMENTAL) < > Multi-purpose USB Networking Framework [ ] Wan interfaces support ---> [ ] FDDI driver support [ ] HIPPI driver support (EXPERIMENTAL) < > PPP (point-to-point protocol) support < > SLIP (serial line) support [ ] Fibre Channel driver support < > Network console logging support (EXPERIMENTAL) Anyway, save your settings to enable some of the wireless LAN USB iptable, IPsec, multicast, IPIP / GRE tunnel, Dummy interface, bridging, and 802.1Q VLAN.
And finally compile. To create a uImage here.
KURO-BOX:/usr/src/linux-2.6.25.20# make uImage scripts/kconfig/conf -s arch/ppc/Kconfig CHK include/linux/version.h UPD include/linux/version.h CHK include/linux/utsrelease.h UPD include/linux/utsrelease.h SYMLINK include/asm -> include/asm-ppc CC arch/ppc/kernel/asm-offsets.s ~省略~ LD .tmp_vmlinux2 KSYM .tmp_kallsyms2.S AS .tmp_kallsyms2.o LD vmlinux SYSMAP System.map SYSMAP .tmp_System.map OBJCOPY arch/ppc/boot/images/vmlinux.bin GZIP arch/ppc/boot/images/vmlinux.gz UIMAGE arch/ppc/boot/images/uImage Image Name: Linux-2.6.25.20-kurobox Created: Sat Jul 2 21:40:24 2011 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 1460604 Bytes = 1426.37 kB = 1.39 MB Load Address: 0x00000000 Entry Point: 0x00000000 Image: arch/ppc/boot/images/uImage is ready Continue safely so that you have created an uImage, make and install the module
KURO-BOX:/usr/src/linux-2.6.25.20# make modules KURO-BOX:/usr/src/linux-2.6.25.20# make modules_install To back up the existing ones to create uImage to store
KURO-BOX:/usr/src/linux-2.6.25.20# cd /boot KURO-BOX:/boot# ls -la drwxr-xr-x 3 root root 4096 2011-06-26 22:35 . drwxr-xr-x 21 root root 4096 2011-04-10 05:23 .. -rw-r--r-- 1 tmp-kun tmp-kun 31064 2008-05-04 22:18 .config -rw-r--r-- 1 root root 718574 2011-06-26 18:20 System.map -rw-r--r-- 1 root root 1465831 2011-06-26 22:01 uImage lrwxrwxrwx 1 tmp-kun tmp-kun 6 2011-04-10 05:25 vmlinux.UBoot -> uImage -rwxr-xr-x 1 tmp-kun tmp-kun 3063942 2008-05-04 22:18 vmlinux.bin KURO-BOX:/boot# mv System.map System.map.org KURO-BOX:/boot# mv uImage uImage.org UImage and copy that you have created.
KURO-BOX:/boot# cp -p /usr/src/linux-2.6.25.20/arch/ppc/boot/images/uImage /boot KURO-BOX:/boot# cp -p /usr/src/linux-2.6.25.20/System.map /boot Eventually like this
KURO-BOX:/boot# ls -la drwxr-xr-x 3 root root 4096 2011-06-26 22:35 . drwxr-xr-x 21 root root 4096 2011-04-10 05:23 .. -rw-r--r-- 1 tmp-kun tmp-kun 31064 2008-05-04 22:18 .config -rw-r--r-- 1 root root 718574 2011-06-26 18:20 System.map -rw-r--r-- 1 tmp-kun tmp-kun 694437 2008-05-04 22:18 System.map.org -rw-r--r-- 1 root root 1465831 2011-06-26 22:01 uImage -rw-r--r-- 1 tmp-kun tmp-kun 1432414 2008-05-04 22:18 uImage.org lrwxrwxrwx 1 tmp-kun tmp-kun 6 2011-04-10 05:25 vmlinux.UBoot -> uImage -rwxr-xr-x 1 tmp-kun tmp-kun 3063942 2008-05-04 22:18 vmlinux.bin This, after a restart, startup check.
KURO-BOX:~# uname -a Linux KURO-BOX 2.6.25.20-kurobox #3 Sun Jun 26 21:59:59 JST 2011 ppc GNU/Linux To verify that the version of the kernel has been updated
Create mkimage [KuroBox]
- July 3, 2011 12:00 AM
- Built environment | recording
To compile mkimage in order to rebuild the kernel in the form of U-Boot can be used in
KuroBox is created from the source to 1.1.4 because they contain current U-Boot1.1.4.
First, download the source, unpack
KURO-BOX:~# cd /usr/src/ KURO-BOX:/usr/src# wget http://prdownloads.sourceforge.net/u-boot/u-boot-1.1.4.tar.bz2 KURO-BOX:/usr/src# tar -xjvf u-boot-1.1.4.tar.bz2 KURO-BOX:/usr/src# cd u-boot-1.1.4 To store the current path Because it seems that sometimes make reference to the $ TOPDIR then.
KURO-BOX:/usr/src/u-boot-1.1.4# export TOPDIR=`pwd` KURO-BOX:/usr/src/u-boot-1.1.4# echo $TOPDIR /usr/src/u-boot-1.1.4 I need this time to make tools directory so only mkimage.
KURO-BOX:/usr/src/u-boot-1.1.4# cd tools KURO-BOX:/usr/src/u-boot-1.1.4/tools# make mkimage ln -s ../common/environment.c environment.c ln -s ../lib_generic/crc32.c crc32.c gcc -M -Wall -pedantic -idirafter ../include -DTEXT_BASE= -DUSE_HOSTCC environment.c img2srec.c mkimage.c crc32.c envcrc.c gen_eth_addr.c bmp_logo.c > .depend environment.c:28:20: error: config.h: No such file or directory envcrc.c:32:20: error: config.h: No such file or directory gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE= -DUSE_HOSTCC -O -c mkimage.c gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE= -DUSE_HOSTCC -O -c crc32.c gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE= -DUSE_HOSTCC -O -o mkimage mkimage.o crc32.o strip mkimage U-Boot-enabled kernel is created, you can start without any problems this error is that it mkimage.
KURO-BOX:/usr/src/u-boot-1.1.4/tools# cp -p mkimage /usr/local/bin KURO-BOX:/usr/src/u-boot-1.1.4/tools# which mkimage /usr/local/bin/mkimage Mkimage is created, then copied to the location and complete your path such as / usr / local / bin.
Installing the GCC [KuroBox]
- July 2, 2011 12:00 AM
- Built environment | recording
Have to install the GCC, and the default system install two version of 3.4 (4.3 system)
KURO-BOX:~# aptitude install gcc gcc-3.4 · Nevertheless, as set in the update-alternatives to switch When you have finished installing, I checked with the command:
KURO-BOX:~# update-alternatives --display gcc No alternatives for gcc. Not like. Try to set everything that can be set with the following command, and may already exist under a different name
KURO-BOX:~# update-alternatives --all Yappari not like.
So, (. Was "gcc" and group name) manually add
KURO-BOX:~# update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-3.4 34 --slave /usr/bin/cpp cpp /usr/bin/cpp-3.4 --slave /usr/bin/gcov gcov /usr/bin/gcov-3.4 KURO-BOX:~# update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.3 43 --slave /usr/bin/cpp cpp /usr/bin/cpp-4.3 --slave /usr/bin/gcov gcov /usr/bin/gcov-4.3 Configured to use gcc-3.4 by default
KURO-BOX:~# update-alternatives --config gcc There are 2 alternatives which provide `gcc'. Selection Alternative ----------------------------------------------- * 1 /usr/bin/gcc-3.4 + 2 /usr/bin/gcc-4.3 Press enter to keep the default[*], or type selection number: 1 Using '/usr/bin/gcc-3.4' to provide 'gcc'. Initialize the KuroBox [KuroBox]
- June 30, 2011 12:00 AM
- Built environment | recording
Note when I went to reinstall and format the HDD after turned into a U-Boot (no mark), because the original had been left KuroBox.
- This format of the HDD <br /> intentionally remove the HDD was performed to remove the partition with Windows7.
KuroBox back to the format is complete, assemble. - U-Boot command mode to confirm the situation and start in nc
From a Windows PC nc , provided (for straight-through cable on the switch and back) with a crossover cable connection box and Gen.
198.168.11.149 is set to the IP address of the Windows PC, navigate to the folder of nc from a command prompt, run the following command to startnc -v -v -n -u -s 192.168.11.149 -p 6666 192.168.11.150 6666Should be displayed as shown below to watch the state so to 192.168.11.150 Now, when you start KuroBox
U-Boot 1.1.4 LiSt 2.1.0 (Sep 21 2006 - 00:22:56) LinkStation / KuroBox CPU: MPC8245 Revision 1.4 at 196.608 MHz: 16 kB I-Cache 16 kB D-Cache DRAM: 64 MB FLASH: 4 MB ~省略~ Boot in 10 seconds ('s' to stop)...Enter the [s] here, enter the command mode of the U-Boot.
Boot in 7 seconds ('s' to stop)... s => - EM mode to
=> run writeng Un-Protected 1 sectors Flash erase: first = 55 @ 0xfff70000 last = 55 @ 0xfff70000 Flash erase: Done Erased 1 sectors Copy to Flash... done => run emboot ## Booting image at ffc00000 ... ******* Product Information ******* [#k0621bb4] ---------------------------------- Product Name: KURO-BOX(IETSUNA) VER: 1.02 Date: 2004/4/16 11:46:41 ---------------------------------- Verifying checksum... OK Uncompressing kernel...done. Loading Ramdisk at 0x03C67000, end 0x03E6E647 ... OK Booting the kernel ~省略~So should have stood up in EM mode in this, remove the crossover cable to connect to the LAN, DHCP is running.
- Create a partition
Delete the entire region HDDroot@KURO-BOX:~# /sbin/mfdisk -e /dev/hda delete partition 1 delete partition 2 delete partition 3 delete partition 4 create partitions... deleate all partitions. The partition table has been altered! Syncing disks.(: 4GB, for the second region SWAP: 256MB, the third region: the first rest area) followed by partitioning
root@KURO-BOX:~# /sbin/mfdisk -c /dev/hda Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-15798, default 1): [enter] Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-15798, default 15798): +4000M Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 2 First cylinder (8128-15798, default 8128): [enter] Using default value 8128 Last cylinder or +size or +sizeM or +sizeK (8128-15798, default 15798): +256M Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 3 First cylinder (8649-15798, default 8649): [enter] Using default value 8649 Last cylinder or +size or +sizeM or +sizeK (8649-15798, default 15798): [enter] Using default value 15798 Command (m for help): t Partition number (1-4): 2 Hex code (type L to list codes): 82 Changed system type of partition 2 to 82 (Linux swap) Command (m for help): p Disk /dev/hda: 16 heads, 63 sectors, 15798 cylinders Units = cylinders of 1008 * 512 bytes Device Boot Start End Blocks Id System /dev/hda1 1 8127 4095976+ 83 Linux /dev/hda2 8128 8648 262584 82 Linux swap /dev/hda3 8649 15798 3603600 83 Linux Command (m for help): w The partition table has been altered! Syncing disks. - First format <br /> the first region (LinuxOS) the area was created
root@KURO-BOX:~# /sbin/mke2fs -j /dev/hda1 mke2fs 1.22, 22-Jun-2001 for EXT2 FS 0.5b, 95/08/09 Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 512000 inodes, 1023994 blocks 51199 blocks (5.00%) reserved for the super user First data block=0 32 block groups 32768 blocks per group, 32768 fragments per group 16000 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736 Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 21 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.Then the second region (Swap)
root@KURO-BOX:~# /sbin/mkswap /dev/hda2 Setting up swapspace version 1, size = 268881920 bytesFinally the third region (Data)
root@KURO-BOX:~# /sbin/mke2fs -j -m 0 /dev/hda3 mke2fs 1.22, 22-Jun-2001 for EXT2 FS 0.5b, 95/08/09 Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 450688 inodes, 900900 blocks 0 blocks (0.00%) reserved for the super user First data block=0 28 block groups 32768 blocks per group, 32768 fragments per group 16096 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736 Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 28 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. - Mount the area was created
root@KURO-BOX:~# mount -t ext3 /dev/hda1 /mnt root@KURO-BOX:~# mount -t ext3 /dev/hda3 /mnt2 root@KURO-BOX:~# df -h Filesystem Size Used Available Use% Mounted on /dev/ram0 9.5M 5.0M 4.5M 53% / /dev/hda1 3.8G 32.1M 3.6G 1% /mnt /dev/hda3 3.4G 32.1M 3.4G 1% /mnt2 - OS data transfer
FTP (FileZilla to save three of the following to create a folder in u-boot (/ dev/hda3) / mnt2 the following files, etc.)- Compressed file from Revulo's Laboratory of Debian5.0 lenny ( Debian-lenny-KuroBOX-20090317.Tgz )
- Kernel image ( 2.6.20-Kernelimage-KuroBOX-UImage.Tgz )
- Kernel module ( modules-2.6.20-KuroBOX.Tgz )
After I checked the transfer.
root@KURO-BOX:~# ls /mnt2/u-boot debian-lenny-kuroBOX-20090317.tgz kernelimage-2.6.20-kuroBOX-uImage.tgz modules-2.6.20-kuroBOX.tgz - Installing the OS
Expanded to (/ mnt) / dev/hda1 the (lenny) Debian5.0root@KURO-BOX:~# cd /mnt root@KURO-BOX:~# pwd /mnt root@KURO-BOX:~# tar xvzf /mnt2/u-boot/debian-lenny-kuroBOX-20090317.tgz ~省略~Checking / (/ mnt) dev/hda1
root@KURO-BOX:~# ls /mnt bin home mnt sbin tmp boot lib opt selinux usr dev lost+found proc srv var etc media root sysExpanded to (/ mnt / boot) / dev/hda1/boot the (2.6.20) kernel image
root@KURO-BOX:~# tar xvfz /mnt2/u-boot/kernelimage-2.6.20-kuroBOX-uImage.tgz .config System.map vmlinux.UBoot uImage/ Check the contents of the boot
root@KURO-BOX:~# ls /mnt/boot System.map uImage vmlinux.UBootExpanded to (/ mnt / lib / modules) / dev/hda1/lib/modules the (2.6.20) kernel module
root@KURO-BOX:~# cd /mnt/lib/modules root@KURO-BOX:~# pwd /mnt/lib/modules root@KURO-BOX:~# tar xvzf /mnt2/u-boot/modules-2.6.20-kuroBOX.tgz ~省略~/ Make sure that you have is lib/modules/2.6.20-kurobox
root@KURO-BOX:~# ls 2.6.20-kurobox root@KURO-BOX:~# ls 2.6.20-kurobox build modules.dep modules.pcimap kernel modules.ieee1394map modules.symbols modules.alias modules.inputmap modules.usbmap modules.ccwmap modules.isapnpmap source - you set the network configuration before restarting the network settings <br /> lenny, given a fixed IP address just in case
root@KURO-BOX:~# vi /mnt/etc/network/interfaces iface eth0 inet static address 192.168.0.100 network 192.168.0.0 netmask 255.255.255.0 broadcast 192.168.0.255 gateway 192.168.0.1 iface lo inet loopback auto eth0 loroot@KURO-BOX:~# vi /mnt/etc/hosts 127.0.0.1 localhost 192.168.0.100 KURO-BOXroot@KURO-BOX:~# vi /mnt/etc/hosts.allow #ALL: 192.168.0.0/255.255.0.0 #ALL: 127.0.0.1 ALL : ALL : ALLOWroot@KURO-BOX:~# vi /mnt/etc/resolv.conf search nameserver 192.168.0.1 - fix fstab settings to your environment
root@KURO-BOX:~# vi /mnt/etc/fstab # /etc/fstab: static file system information. # # proc /proc proc defaults 0 0 /dev/hda2 none swap sw 0 0 /dev/ hda1 / ext3 defaults,noatime,errors=remount-ro 0 0 /dev/ hda3 /mnt ext3 defaults,noatime 0 0root@KURO-BOX:~# vi /mnt/etc/fstab # /etc/fstab: static file system information. # # proc /proc proc defaults 0 0 /dev/hda2 none swap sw 0 0 /dev/ hda1 / ext3 defaults,noatime,errors=remount-ro 0 0 /dev/ hda3 /mnt ext3 defaults,noatime 0 0root@KURO-BOX:~# vi /mnt/etc/fstab # /etc/fstab: static file system information. # # proc /proc proc defaults 0 0 /dev/hda2 none swap sw 0 0 /dev/ hda1 / ext3 defaults,noatime,errors=remount-ro 0 0 /dev/ hda3 /mnt ext3 defaults,noatime 0 0root@KURO-BOX:~# vi /mnt/etc/fstab # /etc/fstab: static file system information. # # proc /proc proc defaults 0 0 /dev/hda2 none swap sw 0 0 /dev/ hda1 / ext3 defaults,noatime,errors=remount-ro 0 0 /dev/ hda3 /mnt ext3 defaults,noatime 0 0 - Restart through the EM
Write the command exits the EM moderoot@KURO-BOX:~# echo -n "OKOK" > /dev/fl3Verify that the command can be written
root@KURO-BOX:~# dd if=/dev/fl3 bs=4 count=1 OKOK1+0 records in 1+0 records out 4 bytes transferred in 0.006583 seconds (608 bytes/sec)Restart
root@KURO-BOX:~# reboot - Startup check of Debian5.0 Lenny
Ensure that the root after logging in to become connected to the IP that has been previously set by telnetDebian GNU/Linux 5.0 KURO-BOX login: tmp-kun Password: tmp-kun ~省略~ tmp-kun@KURO-BOX:~$ suパスワード: root KURO-BOX:/home/tmp-kun#
Check the IP address was obtained in KuroBox DHCP, do the login in telnet.
Kroutoshikou KURO-BOX (IETSUNA) kernel 2.4.17_kuro-box on ppc KURO-BOX login: root Password: kuro Lubuntu 11.04 to install the Dynabook C7
- May 2, 2011 12:00 AM
- Built environment | recording
Install the Ubuntu Netbook Edition 10.10 last time but was, had come out changed because usability is a problem with the heavier work.
Lubuntu is something you change from Gnome desktop of Ubuntu based LXDE.
To use PC to a decade of proven lightweight LXDE hunger, and then transformed into a stylish PC a little bit different of older PC Yet it also contains Launcher serve netbook.
To provide a file as described below, because you did not restart the auto-boot Lxlauncher.
/ Home / <username> / .config / autostart / lxlauncher.desktop
[Desktop Entry] Encoding=UTF-8 Name=Lxlauncher Comment=LXDE launcher Exec=/usr/bin/lxlauncher Terminal=false Type=Application Icon= Categories=Application;System; To install the Ubuntu Netbook Edition 10.10 Dynabook C7
- March 21, 2011 12:00 AM
- Built environment | recording
Install the Ubuntu Netbook Edition 10.04 last note because there was need to look to install the Ubuntu Netbook Edition 10.10 again so had to return to the WindowsXP but after that was done manually, the screen settings.
It was the subject of xorg.conf is created <br /> CyberALADDiN-T chipset manufactured by Trident
- To start gedit from the terminal
$ gedit ~/xorg.conf - Copy and paste the contents of the following
Section "Monitor" Identifier "Generic Monitor" HorizSync 28-51 VertRefresh 43-60 EndSection Section "Screen" Identifier "Default Screen" Monitor "Generic Monitor" SubSection "Display" Depth 24 Modes "1024x768" "800x600" "640x480" EndSubSection EndSection - Copied to the / etc/X11 xorg.conf to save the
sudo cp ~/xorg.conf /etc/X11/
Rebuilding kernel in Ubuntu 10.04
- July 12, 2010 12:00 AM
- Built environment | recording
When you compile the kernel of Inferno on Ubuntu,
- / Bin / sh: Argument list too long
Mk with an error that was not completed.
I hope if you can split with xargs, do not know how to use Imaichi.
'm Using the mkfile in the mk command, because the split in the script very much by its contents, are written to another file to read in a separate file, but I like you are passing in an argument to it, this I hope I can use the xargs how if?
Decided to increase the value of itself can not be helped because ARG_MAX.
Installation of the package necessary to rebuild the kernel
- $ Sudo apt-get install build-essential
- $ Sudo apt-get install kernel-package libncurses5-dev libqt3-mt-dev
Expand it to install the kernel source
- $ Sudo apt-get install linux-source-2.6.32
- $ Cd / usr / src
- $ Sudo tar xvjf linux-source-2.6.32.tar.bz2
Changes in the source
- Open / usr/src/linux-source-2.6.32/include/linux/limits.h, increase the ARG_MAX
. Create a config file
- $ Cd linux-source-2.6.32
- $ Sudo cp / boot/config-2.6.32-23-generic. Config
- $ Sudo make oldconfig
Parameter changes
- $ Sudo make menuconfig
Processor type and features ---> Processor familly ---> *Coer 2/newer Xeon Timer frequency ---> *300 HZ Device Drivers ---> ATA/ATAPI/MFM/RLL support ---> *generic ATA/ATAPI disk support Device Drivers ---> ATA/ATAPI/MFM/RLL support ---> *ATA disk support Save the changes in the Save Configuration to an Alternate File, such as to change the.
Open the inside. Config file was completed,
Verify that you are made to "y" instead of "M" is as follows.
- CONFIG_IDE
- CONFIG_SCSI
- CONFIG_EXT3
(To set that up to five, so four CPU) parallel compilation setting
- $ Sudo export CONCURRENCY_LEVEL = 5
Rebuild the kernel
- $ Sudo make-kpkg clean
- $ Sudo make-kpkg-initrd-revision = 20100710 kernel_image kernel_headers
. Install deb dpkg can be so
- $ Cd .. /
- $ Sudo dpkg-i linux-image-2.6.32. ***** 20100710_i386.deb
- $ Sudo dpkg-i linux-headers-2.6.32. ***** 20100710_i386.deb
Restart
- $ Sudo shutdown-r now
Does not start · · ·
Kernel Panic:VFS:*** An error that, for now, contains a menu of GRUB2 and then hold down the Shift key after a restart,
Not have a problem like section of the initrd and set up and start the version you compare everything was working fine.
creating initrd
- $ Cd / boot /
- $ Sudo mkinitramfs-o initrd.img-2.6.32. ***** 2.6.32
Contains menu of GRUB2 again hold the Shift key after the restart,
At the end to go into edit mode by pressing the "e" in the kernel section of the reconstructed
initrd /boot/initrd.img-2.6.32.***** Like to add, you can start something with Ctrl + x.
I somehow doubt that change of GRUB2 is useless unless this is done manually · · ·.
Then, check the value of the desired ARG_MAX
$ Getconf ARG_MAX
I checked in does not change · · ·.
Did you mean so heavy and the new kernel
$ Sudo ulimit-Ss
I executed the, has increased.
After all, like I'm glad I did not compile the kernel,
Made this time to remove the kernel, use the kernel had been using until now.
Increasing the kernel compile error will occur inferno.
Try to find another way because it's for is already in the wrong direction you are working very much.
Shared Folders in VirtualBox in Ubuntu
- June 28, 2010 12:00 AM
- Built environment | recording
- Installation of the extension
- Mount the installation CD in the "Install Guest Additions" "device" → the menu of the virtual machine window
- $ Cd / media/VBOXADDITIONS_3.2.4_62467 /
- $ Sudo sh VBoxLinuxAdditions-x86.run
- Setting up shared folders
- Set a shared folder in the "Folder ..." shared "device" → the menu of the virtual machine window
- $ Sudu mkdir / mnt / share
(Created on which to mount) - $ Sudo mount.vboxsf Share / mnt / share /
(Mount the shared folder)
Linux tools you can use to recover
- April 26, 2010 12:00 AM
- Material
Note the Linux tools you can use when the system does not start for a variety of reasons.
Trinity Rescue Kit
Very good but I CUI-based.
SystemRescueCd
FTP can also be manipulated to test and HDD in the GUI.
F-Secure Rescue CD
High-performance file, such as checking and repair integrity of your application.
safecopy
Can also copy from the disk error has occurred.
Various OS
- April 24, 2010 12:00 AM
- Material
Make a note of the OS you are expected to repeat because of forget to examine every time I'd love to play with many different kinds of OS anyway, I'll leave to various places ·.
- Monolithic kernel
- BSD
- FreeBSD
Mogul of BSD can not forget - OpenSolaris
Speaking of Solaris
- FreeBSD
- Linux
- INSERT
Linux for data rescue - PuppyLinux
Linux was intended to move lightly and even old PC - GentooLinux
Linux for expert - EcoLinux
Linix Japanese college students are hard - Elive
Linux provides a GUI in motion is beautiful - Chromium OS
Linux-based WebOS that make up the Google - Joli OS
Ubuntu LTS-based OS for netbooks are making a Jolicloud - Splashtop OS
MicrosoftがDeviceVM社と組み、Linuxをベースとした軽量Webアクセス用OS - Damn Vulnerable Linux
無防備極まるセキュリティ学習用Linux - BackTrack
セキュリティチェック用Linux
- INSERT
- Amiga
- icaros desktop
AmigaOS3.1 互換 AROSのディストリビューション - Syllable
AtheOSの派生OS
- icaros desktop
- MS-DOS
- FreeDOS
MS-DOS互換OS
- FreeDOS
- BSD
- マイクロカーネル
- Minix
UNIX風教育用OS - BeOS
- Haiku
今はなきBeOSの思想を引き継いだOS
- Haiku
- L4
マイクロカーネルらしさを追求した第二世代のマイクロカーネル - MonaOS
2ちゃんねる発 - MikeOS
OSの勉強にもってこい - ナノカーネル
- JNode
ほとんどすべてをJavaで作ったOS
- JNode
- Minix
- ハイブリッドカーネル
- ReactOS
WindowsNT互換OS - Plan9
次世代Unixを志した分散OS
- ReactOS
OS/2 や NetWareはないんだよなぁ・・・
まぁ、個人で使うことなんてないようなOSなんだけれど。
Home > tags> Linux
- Search
- Feed
- Translation












