Home > Record Building> Environment

Archives of environmental construction

Rebuilding the kernel [KuroBox]

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]

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]

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]

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.

  1. 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.
  2. 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 start

     nc -v -v -n -u -s 192.168.11.149 -p 6666 192.168.11.150 6666 

    Should 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 => 
  3. 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.

  4. 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 
  5. Create a partition
    Delete the entire region HDD

     root@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. 
  6. 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 bytes 

    Finally 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. 
  7. 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 
  8. 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.)

    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 
  9. Installing the OS
    Expanded to (/ mnt) / dev/hda1 the (lenny) Debian5.0

     root@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 sys 

    Expanded 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.UBoot 

    Expanded 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 
  10. 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 lo 
     root@KURO-BOX:~# vi /mnt/etc/hosts 127.0.0.1 localhost 192.168.0.100 KURO-BOX 
     root@KURO-BOX:~# vi /mnt/etc/hosts.allow #ALL: 192.168.0.0/255.255.0.0 #ALL: 127.0.0.1 ALL : ALL : ALLOW 
     root@KURO-BOX:~# vi /mnt/etc/resolv.conf search nameserver 192.168.0.1 
  11. 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 0   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 0  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 0  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 0 
  12. Restart through the EM
    Write the command exits the EM mode

     root@KURO-BOX:~# echo -n "OKOK" > /dev/fl3 

    Verify 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 
  13. 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 telnet

     Debian GNU/Linux 5.0 KURO-BOX login: tmp-kun Password: tmp-kun ~省略~ tmp-kun@KURO-BOX:~$ suパスワード: root KURO-BOX:/home/tmp-kun# 

Set to check the system update tool v2 cherry editor

V2 system was also internally to Unicode character code "Sakura editor" has been officially released.
Note along with it, so try changing your settings so that you can check the system v2 Demo Tool "SakuraDown" installation assistance.

Where you want to edit as follows: section of the "DownInfo.ini" which describes the [EDITOR] such as the download destination.

 [EDITOR] ;ReleaseURI=http://sourceforge.net/api/file/index/project-id/12488/rss?path=%2Fsakura ReleaseURI=http://sourceforge.net/api/file/index/project-id/12488/rss?path=%2Fsakura2 ;FileRegExp=\d\.\d\.\d\.\d/sakura_[^\/\?<>=]+\.zip FileRegExp=\d\.\d\.\d\.\d/sakura2[^\/\?<>=]+\.zip ReleaseFindingPolicy=FROM_LAST ;DownloadURI=http://@MIRROR.dl.sourceforge.net/project/sakura-editor/sakura/@FILE DownloadURI=http://@MIRROR.dl.sourceforge.net/project/sakura-editor/sakura2/@FILE ReleaseType=SITE_SOURCEFORGE ;WildName=sakura_????-??-??*.zip WildName=sakura2-*.zip 

Where you want to edit as follows: section of the "DownInfo.ini" to take advantage of [BREGEXP] the Unicode version also regular expression library.

 [BREGEXP] ReleaseURI=http://homepage3.nifty.com/k-takata/mysoft/bregonig.html ;FileRegExp=bron[0-9]+\.zip FileRegExp=bron2[0-9]+\.zip DownloadURI=http://homepage3.nifty.com/k-takata/mysoft/@FILE ReleaseType=SITE_NORMAL WildName=bron???.zip;bron???.lzh 

But I think there is something incorrect, so tentatively moved in this, please respond at your own risk by What interim.

Lubuntu 11.04 to install the Dynabook C7

Lubuntu-Lxlauncher


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; 

Note that 7 Touch Diamond build environment

Note when setting to be able to use a radio
FMラジオ

  • Replacement of the DLL

    So keep a little better the sensitivity of the antenna.

    1. 1.09.25.23 rilphone.cab run forward to the Touch Diamond
  • Limit release of Band

    Remains in the original can be chosen by changing the value of the registry because you can not set a certain part of the frequency band 76.0 ~ 90.0MHz 87.5 ~ 108.0MHz Japan so over a range of settings.

    1. FM_JP.cab transferred to the Touch Diamond and run the
       [HKEY_LOCAL_MACHINE\Software\HTC\FMRadio\FMPlayer] “Band”=dword:0000000 1 
  • Listen to FM radio with earphones that normally use

    Can listen to the radio even if it is not equipped with a microphone and the supplied earphones to use the USB audio adapter "slim".

    1. USB audio adapter "slim" to buy.

Reference: Japan corresponding change in the frequency band of the FM radio of non-Japan

Note that building environment 6 Touch Diamond

Described because the request was received and want to write about and e-mail settings EMnet SMS.
SMS受信確認設定画面

  • Remove ArcMMS

    Run the DelArcMMS.mscr, deletes the association ArcMMS

    1. DelArcMMS.mscr transferred to the Touch Diamond and run the
      (To BsB6.5.1G but should be able to run for MortScript is already, if you can not MortScript-4.2-PPC.cab please run after the installation.)
  • Preparing for the MMS Lite installation

    Write registry information to be able to receive SMS or MMS Lite is running in PreSetupMMSLite.exe.

    1. PreSetupMMSLite.zip unzip, and run it transferred to the Touch Diamond a PreSetupMMSLite.exe
  • Installation of the MSS Lite

    To be able to use SMS and MMS to install the MMSLite.1.1.320.wm6.cab

    1. MMSLite.1.1.320.wm6.cab transferred to the Touch Diamond and run the
  • Setting MMSLite

    Run rewritten to suit your environment MMSLite.mscr, reflect the setting

    1. MMSLite.mscr download to fix the e-mail address, etc.
       Case(YES) RegWriteDword( "HKCU", "Software\MMS Lite\Profiles\MMS", "AllowDeliveryReport" , 1 ) RegWriteDword( "HKCU", "Software\MMS Lite\Profiles\MMS", "AllowReadReport" , 1 ) RegWriteDword( "HKCU", "Software\MMS Lite\Profiles\MMS", "AutoRetry" , 1 ) RegWriteString( "HKCU", "Software\MMS Lite\Profiles\MMS", "EmailAddres", " 自分のメールアドレス@emnet.ne.jp " ) RegWriteDword( "HKCU", "Software\MMS Lite\Profiles\MMS", "ForceAutoRecv" , 1 ) RegWriteDword( "HKCU", "Software\MMS Lite\Profiles\MMS", "ForceConnect" , 0 ) RegWriteString( "HKCU", "Software\MMS Lite\Profiles\MMS", "MmsGateway", " 10.56.46.1:8080 " ) RegWriteString( "HKCU", "Software\MMS Lite\Profiles\MMS", "MmsServer", " http://mms.internal.emnet.ne.jp " ) RegWriteDword( "HKCU", "Software\MMS Lite\Profiles\MMS", "MsgDurationPeriod" , 0 ) RegWriteDword( "HKCU", "Software\MMS Lite\Profiles\MMS", "RequireDeliveryReport" , 0 ) RegWriteDword( "HKCU", "Software\MMS Lite\Profiles\MMS", "RetryCount" , 0 ) RegWriteDword( "HKCU", "Software\MMS Lite\Profiles\MMS", "RetryTimeout" , 30 ) RegWriteDword( "HKCU", "Software\MMS Lite\Profiles\MMS", "SaveSent" , 1 ) RegWriteDword( "HKCU", "Software\MMS Lite\Profiles\MMS", "ServerPort" , 80 ) RegWriteString( "HKCU", "Software\MMS Lite\Profiles\MMS\UserAgent", " Default ", " S21HT " ) RegWriteString( "HKCU", "Software\MMS Lite\Profiles\MMS\UserAgent", " S21HT ", " S21HT/ArcSoft-MMSUA-PPC-v50 " ) RegWriteDword( "HKCU", "Software\MMS Lite\Profiles\MMS\Connections", " EMnet " , 0 ) 
    2. Transferred to the Touch Diamond and run the modified MMSLite.mscr
  • Checking the Configuration

    Check that the setting is reflected in

    1. To is that you have selected the ones EMnet: "Select the connection you want to use"
    2. "Email address:" People are anxious to send but does not seem a problem but would have been telephone number is displayed, so that address information is recorded in the registry is changed to address.

Note: Touch Diamond ROM EMnet mail in the roasted (S21HT).

To install the Ubuntu Netbook Edition 10.10 Dynabook C7

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

  1. To start gedit from the terminal
     $ gedit ~/xorg.conf 
  2. 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 
  3. Copied to the / etc/X11 xorg.conf to save the
     sudo cp ~/xorg.conf /etc/X11/ 

Installation of the [Android] NDK

Note When you install the Android NDK to Eclipse was installed in MacOSX.
(To use the make command in the ndk-build command, and that you install Xcode)
Download Android NDK
NDKを適当なフォルダに格納する

  1. Download the following files:
  2. Unzip the downloaded file to be stored in a suitable folder (for example: User / username / Developer)

Installing the CDT (C / C + + Development Tooling)

  1. Open the "Install New Software ..." -> "Help"
  2. "Want to work with:" To - Select the "Helios http://download.eclipse.org/release/helios"
  3. When the list is displayed check the following items from the "programming language", to install
    • C / C + + Development Tools
    • C / C + + Library API Documentation Hover Help (Incubation)

Add Environment Variable

  1. . Open the bash_profile
    • vim ~ /. bash_profile
  2. To "PATH" where to store the additional NDK (:/ Users / username / Developer / android-ndk-mac case NDK location)
     ANDROIDNDK_HOME=/Users/username/Developer/android-ndk-mac PATH=$PATH:${ANDROIDNDK_HOME} 
  3. . To reload the bash_profile, to reflect the changes
    • source ~ /. bash_profile
  4. Check that the environment variable is reflected in
    • printenv PATH
  5. (If, "PATH" environment variable if you do not already exist in the first place. To append the following sentence to the last line in bash_profile)
     export PATH 

build of hello-jni library

Environment to verify that the configuration is in place try to build the sample that is included in the NDK.

  1. move to a directory hello-jni (:/ Users / username / Developer / android-ndk-mac / sample / hello-jni case /)
    • cd / Users / username / Developer / android-ndk-mac / sample / hello-jni /
  2. (which becomes the output as shown below and succeed) to be built in ndk-build command
     Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver Gdbsetup : libs/armeabi/gdb.setup Compile thumb : hello-jni <= hello-jni.c SharedLibrary : libhello-jni.so Install : libhello-jni.so => libs/armeabi/libhello-jni.so 
1 2 3 4

Home > Record Building> Environment

Search
Feed
Translation
Japanese flagItalian flagKorean flagChinese (Simplified) flagChinese (Traditional) flagEnglish flagGerman flagFrench flagRussian flagVietnamese flagThai flag

Back to the top of the page