ubifs文件系统的制作以及移植


修改根文件系统:

[lingyun@localhostetc]$ vim mdev.conf

sd[a-z][0-9]      0:0 0777        @(mount /dev/$MDEV /mnt/usb)

sd[a-z]           0:0 0777        $(umount /mnt/usb)

#ub[a-z][0-9]      0:00777        @(mount /dev/$MDEV /mnt/usb)

#ub[a-z]           0:00777        $(umount /mnt/usb)

mmcblk[0-9]p[0-9]0:0 0777        @(mount /dev/$MDEV/mnt/sdc)

mmcblk[0-9]       0:0 0777        $(umount /mnt/sdc)

 

 

 

将etc/inittab文件中的下面两行注释掉。

#Mountour apps/info partition

[lingyun@localhostetc]$ vim inittab

……

#null::wait:/bin/mount -o sync,noatime,ro -t jffs2 /dev/mtdblock6/apps

#null::wait:/bin/mount -o sync,noatime,ro -t jffs2/dev/mtdblock7 /info

……

 

制作镜像文件:

前面在制作mkfs.jffs2工具的同时制作了一个mkfs.ubifs工具,这个工具就是用来制作ubifs映像的一个工具。

[[email protected]]$ ls mkfs.ubifs/

compr.c  compr.o crc16.c  crc16.o  devtable.c hashtable  lpt.c  lpt.o      mkfs.ubifs.c  mkfs.ubifs.o  ubifs.h

compr.h  COPYING crc16.h  defs.h   devtable.o key.h      lpt.h  mkfs.ubifs  mkfs.ubifs.h README        ubifs-media.h

[[email protected]]$ sudo cp mkfs.ubifs /usr/bin/

因为mkfs.ubifs工具制作的文件系统映像,在uboot中烧录这种映像文件的方式过于复杂,既要使uboot支持nandflash分区,又要在uboot中激活这个分区,再通过ubi write命令烧录这个映像。所以我们换一种比较容易的方式来移植这个文件系统

在制作mkfs.jffs2和mkfs.ubifs工具时,其实还有一个ubinize工具是同时生成的,它的作用是将mkfs.ubifs制作的映像转换为可以直接用nand write命令烧录的映像文件。

 

 

[[email protected]]$ cd ubi-utils/

[lingyun@localhostubi-utils]$ ls

dictionary.c    libscan.c   libubi_int.h         ubiattach.c  ubidetach.o  ubinfo    ubirename.c  ubirsvol.o

dictionary.o    libscan.o   libubi.o             ubiattach.o  ubiformat    ubinfo.c  ubirename.o  ubiupdatevol

include         libubi.a     LICENSE.libiniparser  ubicrc32    ubiformat.c  ubinfo.o   ubirmvol    ubiupdatevol.c

libiniparser.a  libubi.c    mtdinfo              ubicrc32.c   ubiformat.o  ubinize    ubirmvol.c  ubiupdatevol.o

libiniparser.c  libubigen.a mtdinfo.c            ubicrc32.o   ubimkvol     ubinize.c ubirmvol.o   ubiutils-common.c

libiniparser.o  libubigen.c mtdinfo.o            ubidetach    ubimkvol.c   ubinize.o ubirsvol     ubiutils-common.o

libscan.a       libubigen.o ubiattach            ubidetach.c  ubimkvol.o   ubirename ubirsvol.c

[lingyun@localhostubi-utils]$ cp ^C

[lingyun@localhostubi-utils]$ sudo cp ubinize /usr/bin/

[lingyun@localhostubi-utils]$

 

 

rootfs.ubifs的制作过程是通过下面的shell脚本完成的:

 

#!/bin/sh

#+--------------------------------------------------------------------------------------------

#|Description: This shell script is used to generate a UBIFS rootfsfor K9F2G08 nandflash

#|     Author: [email protected]
#| ChangeLog:

#|           1, Initialize 1.2.0on 2013.05.4

#| Reference:

#|      http://www.linux-mtd.infradead.org/faq/ubifs.html

#|      http://blog.sina.com.cn/s/blog_5b9ea9840100apqc.html

#+--------------------------------------------------------------------------------------------

 

#===================================================================

#  U-BOOT print the Rootfspartition UBI information for reference +

#===================================================================

#U-Boot> mtdparts default

#U-Boot> mtdparts

 

#device nand0 , # parts = 4

# #: name               size            offset          mask_flags

# 0: uboot              0x00100000      0x00000000      0

# 1: kernel             0x00400000      0x00100000      0

# 2: ramdisk             0x00a00000      0x00500000      0

# 3: cramfs              0x00f00000      0x00f00000      0

# 4: jffs2              0x02800000      0x01e00000      0

# 5: yaffs2             0x02800000      0x04600000      0

# 6: ubifs              0x02800000      0x06e00000      0

# 7: info               0x00100000      0x09600000      0

# 8: apps               0x02800000      0x09700000      0

# 9: data               0x02800000      0x0bf00000      0

# 10:backup              0x01900000      0x0e700000      0

# active partition: nand0,0 - (bootloader) 0x00100000 @ 0x00000000

#

# defaults:

#     mtdids  : nand0=nand0

 

#===================================================================

#  Linux kenrel printnandflash partition information for reference +

#===================================================================

#Creating 9 MTD partitions on "NAND":

#0x000000000000-0x000000100000 : "mtdblock0 u-boot 1MB"

#0x000000100000-0x000001000000 : "mtdblock1 kernel 15MB"

#0x000001000000-0x000002400000 : "mtdblock2 ramdisk 20MB"

#0x000002400000-0x000003800000 : "mtdblock3 cramfs 20MB"

#0x000003800000-0x000006000000 : "mtdblock4 jffs2 40MB"

#0x000006000000-0x000008800000 : "mtdblock5 yaffs2 40MB"

#0x000008800000-0x00000b000000 : "mtdblock6 ubifs 40MB"

#0x00000b000000-0x00000d800000 : "mtdblock7 apps 40MB"

#0x00000d800000-0x000010000000 : "mtdblock8 data 40MB"

#UBI: attaching mtd6 to ubi0

#UBI: physical eraseblock size:  131072 bytes (128 KiB)

#UBI: logical eraseblock size:   129024 bytes

#UBI: smallest flash I/O unit:   2048

#UBI: sub-page size:             512

#UBI: VID header offset:         512 (aligned 512)

#UBI: data offset:               2048

#UBI: max. sequence number:      0

#UBI: volume 0 ("rootfs") re-sized from 300 to 312 LEBs

#UBI: attached mtd6 to ubi0

#UBI: MTD device name:           "mtdblock6 ubifs 40MB"

#UBI: MTD device size:           40 MiB

#UBI: number of good PEBs:       319

#UBI: number of bad PEBs:        1

#UBI: number of corrupted PEBs:  0

#UBI: max. allowed volumes:      128

#UBI: wear-leveling threshold:   4096

#UBI: number of internal volumes: 1

#UBI: number of user volumes:    1

#UBI: available PEBs:            0

#UBI: total number of reserved PEBs: 319

#UBI: number of PEBs reserved for bad PEB handling: 3

#UBI: max/mean erase counter: 1/0

#UBI: image sequence number: 124781291

#UBI: background thread "ubi_bgt0d" started, PID 439

 

 

#===================================================================

#   Shell script body starthere                                   +

#===================================================================

 

#-r, -d, --root=DIR   rootfilesystem source code tree

 CPU=s3c2440

rootfs_dir=../rootfs
partition_sizeM=40
image_name=ubifs-${CPU}.rootfs

if [ ! -d $rootfs_dir ] ; then
    echo "Miss rootfs source code tree \"$rootfs_dir\" exit..."
    exit;
fi

#Default setting by UBIFS

sub_page_size=512

vid_head_offset=512

 

#-m, minimum I/O unit size, it's 2K(the Page size) on K9F2G08,refer to "UBI: smallest flash I/O unit:   2048"

page_size_in_bytes=2048

#It's 64 pages per block on K9F2G08

pages_per_block=64

block_size_in_bytes=`expr $page_size_in_bytes \*$pages_per_block`                                                                                                            

#echo "[$pages_per_block] pages per block and[$block_size_in_bytes] bytes"

 

#It's 2048 blocks on K9F2G08

blocks_per_device=2048

#echo "Blocks per device [$blocks_per_device]"

 

#-e, logical erase block size, fixed on K9F2G08,refer to u-boot information "UBI: logical eraseblock size:  129024 bytes"

# logical erase block size is physical erase block size minus 1 pagefor UBI

logical_pages_per_block=`expr $pages_per_block - 1`

logical_erase_block_size=`expr $page_size_in_bytes \*$logical_pages_per_block`

#echo "Logical erase block size:  [$logical_erase_block_size] bytes."

 

# wear_level_reserved_blocks is 1% of total blcoks per device

wear_level_reserved_blocks=`expr $blocks_per_device / 100`

#echo "Reserved blocks for wear level[$wear_level_reserved_blocks]"

 

#The rootfs partition size in bytes

partition_size_in_bytes=`expr $partition_sizeM \* 1024 \* 1024`

partition_physical_blocks=`expr $partition_size_in_bytes /$block_size_in_bytes`

#echo "Partition size [$partition_size_in_bytes] bytes and[$partition_physical_blocks] blocks."

 

#Logical blocks on a partition = physical blocks on a partitiion -reserved for wear level

patition_logical_blocks=`expr $partition_physical_blocks -$wear_level_reserved_blocks`

echo $patition_logical_blocks

#echo "Logical blocks in a partition[$patition_logical_blocks]"

 

#File-system volume = Logical blocks in a partition * Logical eraseblock size

fs_vol_size=`expr $patition_logical_blocks \*$logical_erase_block_size`

#echo "File-system volume [$fs_vol_size] bytes."

 

config_file=rootfs_ubinize.cfg

image_tmp=rootfs.img

 

echo ""

echo "Generating $image_tmp file by mkfs.ubifs..."

set -x

sudo /usr/bin/mkfs.ubifs -x lzo -m $page_size_in_bytes -e$logical_erase_block_size -c $patition_logical_blocks -r

$rootfs_dir -o $image_tmp

set +x

 

echo

echo "Generating configuration file..."

echo "[ubifs-volume]" > $config_file

echo "mode=ubi" >> $config_file

echo "image=$image_tmp" >> $config_file

echo "vol_id=0" >> $config_file

echo "vol_size=$fs_vol_size" >> $config_file

echo "vol_type=dynamic" >> $config_file

echo "vol_name=rootfs" >> $config_file

echo "vol_flags=autoresize" >> $config_file

echo "vol_alignment=1" >> $config_file

echo

 

set -x

sudo ubinize -o /tftp/$image_name -m $page_size_in_bytes -p$block_size_in_bytes -s $sub_page_size -O $vid_head_offset

$config_file

set +x

sudo rm -f $image_tmp $config_file

 

注1:mkfs.ubifs中的选项说明

-r, -d, --root=DIR       build file system from directory DIR

-m,--min-io-size=SIZE   minimum I/O unitsize, 参考上面手动挂载一个分区时的信息

-e,--leb-size=SIZE      logical erase blocksize  参考上面手动挂载一个分区时的信息

-c,--max-leb-cnt=COUNT  maximum logicalerase block count 依赖分区大小,调整测试出来

-o,--output=FILE        output to FILE

-x,--compr=TYPE         compression type -"lzo", "favor_lzo", "zlib" or

                         "none"(default: "lzo")

注2: ubinize选项说明:

-o,--output=     outputfile name

-p,--peb-size=       size ofthe physical eraseblock of the flash

                             this UBI image iscreated for in bytes,

                             kilobytes (KiB),or megabytes (MiB)

                             (mandatoryparameter),这里是物理擦除快大小

-m,--min-io-size=    minimuminput/output unit size of the flash

                             in bytes

-s,--sub-page-size=  minimuminput/output unit used for UBI

                             headers, e.g.sub-page size in case of NAND

                             flash (equivalent to the minimuminput/output

                             unit size bydefault) 查看上面手动挂载时的信息

-O,--vid-hdr-offset=   offset ifthe VID header from start of the

                             physicaleraseblock (default is the next

                             minimum I/O unitor sub-page after the EC

                             header) 查看上面手动挂载时的VID信息

 

[lingyun@localhostmtd-utiles]$ sh build_ubifs.sh 

 

Generatingubifs-s3c2440.rootfs file bymkfs.ubifs...

+ sudo/usr/bin/mkfs.ubifs -x lzo -m 2048 -e 129024 -c 300 -r ../rootfs -o ubifs-s3c2440.img

+ set +x

 

Generatingconfiguration file...

 

+ sudo/usr/bin/ubinize -o ubifs-s3c2440.rootfs-m 2048 -p 131072 -s 512 -O 512 rootfs_ubinize.cfg

+ set +x

[lingyun@localhostmtd-utiles]$ ls

build.sh        e2fsprogs-1.42         lzo-2.04         mtd-utils-1.4.9          ubifs-s3c2440.rootfs zlib-1.2.7.tar.gz

build_ubifs.sh  e2fsprogs-1.42.tar.gz  lzo-2.04.tar.gz  mtd-utils-1.4.9.tar.bz2  zlib-1.2.7

[lingyun@localhostmtd-utiles]$ sudo cp ubifs-s3c2440.rootfs/tftp/ubifs-s3c2440.rootfs

 

 

添加u-boot对ubifs的支持:

[ s3c2440@ yangzheng ]# set bkr 'tftp30008000 yz_ubiuImage-24440.gz;nand erase 100000 27bf48;nand write 30008000100000 27bf48'

[ s3c2440@ yangzheng ]# set bubifs 'tftp30008000 ubifs-s3c2440.rootfs;nanderase 6e00000 9a0000;nandwrite 30008000 6e00000 9a0000'

[ s3c2440@ yangzheng ]# set bootargs_ubifs'console=ttyS0,115200 mem=64Mubi.mtd=6 root=ubi0:rootfs rootwait rootfstype=ubifs rw'

[ s3c2440@ yangzheng ]# set bootargs'console=ttyS0,115200 mem=64Mubi.mtd=6 root=ubi0:rootfs rootwait rootfstype=ubifs rw'

[ s3c2440@ yangzheng ]# set bootcmd_rootfs'nand read 30008000 100000 27bf48;bootm 30008000'

[ s3c2440@ yangzheng ]# set bootcmd 'runbootcmd_rootfs'

[ s3c2440@ yangzheng ]# sa

 

启动linux:

[ s3c2440@ yangzheng ]# boot

 

NANDread: device 0 offset 0x100000, size 0x27c000

 2605056 bytes read: OK

##Booting kernel from Legacy Image at 30008000 ...

   Image Name:  Linux Kernel

   Created:     2013-06-05   6:25:18 UTC

   Image Type:  ARM Linux Kernel Image (uncompressed)

   Data Size:   2604808 Bytes = 2.5 MiB

   Load Address: 30008000

   Entry Point: 30008040

   Verifying Checksum ... OK

   XIP Kernel Image ... OK

OK

OS entrypoint: 30008040

Imageentry point=30008040

 

Startingkernel ...

 

UncompressingLinux... done, booting the kernel.

Linuxversion 3.0.0 ([email protected]) (gccversion 4.5.4 (Buildroot 2012.08) ) #7 Wed Jun 5 14:25:14 CST 2013

CPU:ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177

CPU: VIVTdata cache, VIVT instruction cache

Machine:SMDK2440

Memorypolicy: ECC disabled, Data cache writeback

CPU S3C2440A(id 0x32440001)

S3C24XX Clocks, Copyright 2004 SimtecElectronics

S3C244X: core 405.000 MHz, memory 101.250MHz, peripheral 50.625 MHz

CLOCK:Slow mode (1.500 MHz), fast, MPLL on, UPLL on

Built 1zonelists in Zone order, mobility grouping on. Total pages: 16256

Kernelcommand line: console=ttyS0,115200 mem=64Mubi.mtd=6 root=ubi0:rootfs rootwait rootfstype=ubifs rw

PID hashtable entries: 256 (order: -2, 1024 bytes)

Dentrycache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cachehash table entries: 4096 (order: 2, 16384 bytes)

Memory:64MB = 64MB total

Memory:59488k/59488k available, 6048k reserved, 0K highmem

Virtualkernel memory layout:

    vector : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap : 0xfff00000 - 0xfffe0000   ( 896kB)

    DMA    : 0xffc00000 - 0xffe00000   (   2 MB)

    vmalloc : 0xc4800000 - 0xf6000000   ( 792 MB)

    lowmem : 0xc0000000 - 0xc4000000   (  64 MB)

    modules : 0xbf000000 - 0xc0000000   (  16MB)

      .init : 0xc0008000 - 0xc002e000   ( 152 kB)

      .text : 0xc002e000 - 0xc04ef000   (4868 kB)

      .data : 0xc04f0000 - 0xc051fb00  ( 191 kB)

       .bss : 0xc051fb24 - 0xc054bf80   ( 178 kB)

NR_IRQS:85

irq:clearing pending ext status 00080000

irq:clearing subpending status 00000003

irq:clearing subpending status 00000002

Console:colour dummy device 80x30

console[ttyS0] enabled

Calibratingdelay loop... 201.52 BogoMIPS (lpj=503808)

pid_max:default: 32768 minimum: 301

Mount-cachehash table entries: 512

CPU:Testing write buffer coherency: ok

gpiochip_add:gpios 288..303 (GPIOK) failed to register

gpiochip_add:gpios 320..334 (GPIOL) failed to register

gpiochip_add:gpios 352..353 (GPIOM) failed to register

NET:Registered protocol family 16

S3C Power Management, Copyright 2004Simtec Electronics

S3C2440: Initialising architecture

S3C2440: IRQ Support

S3C24XX DMA Driver, Copyright 2003-2006Simtec Electronics

DMAchannel 0 at c4804000, irq 33

DMAchannel 1 at c4804040, irq 34

DMAchannel 2 at c4804080, irq 35

DMAchannel 3 at c48040c0,irq 36

S3C244X: Clock Support, DVS off

s3c-adc s3c24xx-adc: attached adc driver

bio:create slab at 0

SCSIsubsystem initialized

usbcore:registered new interface driver usbfs

usbcore:registered new interface driver hub

usbcore:registered new device driver usb

s3c-i2cs3c2440-i2c: slave address 0x10

s3c-i2cs3c2440-i2c: bus frequency set to 98 KHz

s3c-i2cs3c2440-i2c: i2c-0:S3C I2C adapter

AdvancedLinux Sound Architecture Driver Version 1.0.24.

cfg80211:Calling CRDA to update world regulatory domain

NET:Registered protocol family 2

IP routecache hash table entries: 1024 (order: 0, 4096 bytes)

TCPestablished hash table entries: 2048 (order: 2, 16384 bytes)

TCP bindhash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hashtables configured (established 2048 bind 2048)

TCP reno registered

UDP hashtable entries: 256 (order: 0, 4096 bytes)

UDP-Litehash table entries: 256 (order: 0, 4096 bytes)

NET:Registered protocol family 1

RPC:Registered named UNIX socket transport module.

RPC:Registered udp transport module.

RPC:Registered tcp transport module.

RPC:Registered tcp NFSv4.1 backchannel transport module.

NetWinderFloating Point Emulator V0.97 (extended precision)

NTFSdriver 2.1.30 [Flags: R/W].

JFFS2version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.

msgmnihas been set to 116

ioscheduler noop registered

ioscheduler deadline registered

ioscheduler cfq registered (default)

Console:switching to colour frame buffer device 60x34

fb0: s3c2410fb frame buffer device

s3c2440-uart.0: ttyS0 at MMIO 0x50000000(irq = 70) is a S3C2440

s3c2440-uart.1: ttyS1 at MMIO 0x50004000(irq = 73) is a S3C2440

s3c2440-uart.2: ttyS2 at MMIO 0x50008000(irq = 76) is a S3C2440

brd:module loaded

loop:module loaded

at240-0050: 65536 byte 24c512EEPROM, writable, 128 bytes/write

S3C24XX NAND Driver, (c) 2004 SimtecElectronics

s3c24xx-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=329ns

s3c24xx-nand s3c2440-nand: NAND soft ECC

NANDdevice: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)

Scanningdevice for bad blocks

Baderaseblock 421 at 0x0000034a0000

Baderaseblock 1177 at 0x000009320000

Baderaseblock 1727 at 0x00000d7e0000

Creating11 MTD partitions on "NAND":

0x000000000000-0x000000100000: "mtdblock0 u-boot 1MB"

0x000000100000-0x000000500000: "mtdblock1 kernel 4MB"

0x000000500000-0x000000f00000 : "mtdblock2 ramdisk10MB"

0x000000f00000-0x000001e00000 :"mtdblock3 cramfs 15MB"

0x000001e00000-0x000004600000: "mtdblock3 jffs2 40MB"

0x000004600000-0x000006e00000: "mtdblock4 yaffs2 40MB"

0x000006e00000-0x000009600000: "mtdblock5 ubifs 40MB"

0x000009600000-0x000009700000: "mtdblock6 info 1MB"

0x000009700000-0x00000bf00000: "mtdblock7 apps 40MB"

0x00000bf00000-0x00000e700000: "mtdblock8 data 40MB"

0x00000e700000-0x000010000000: "mtdblock9 backup 25MB"

UBI:attaching mtd6 to ubi0

UBI:physical eraseblock size:   131072 bytes(128 KiB)

UBI:logical eraseblock size:    129024 bytes

UBI:smallest flash I/O unit:    2048

UBI:sub-page size:              512

UBI: VIDheader offset:          512 (aligned 512)

UBI: dataoffset:                2048

UBI: max.sequence number:       7

UBI:attached mtd6 to ubi0

UBI: MTDdevice name:            "mtdblock5ubifs 40MB"

UBI: MTDdevice size:            40 MiB

UBI:number of good PEBs:        319

UBI:number of bad PEBs:         1

UBI:number of corrupted PEBs:   0

UBI: max.allowed volumes:       128

UBI:wear-leveling threshold:    4096

UBI:number of internal volumes: 1

UBI: numberof user volumes:     1

UBI:available PEBs:             0

UBI:total number of reserved PEBs: 319

UBI:number of PEBs reserved for bad PEB handling: 3

UBI:max/mean erase counter: 2/0

UBI:image sequence number:  145199455

UBI:background thread "ubi_bgt0d" started, PID 442

PPPgeneric driver version 2.4.2

PPPDeflate Compression module registered

PPP BSDCompression module registered

PPP MPPECompression module registered

NET:Registered protocol family 24

dm9000Ethernet Driver, V1.31

eth0: dm9000a at c48b4300,c48b6304 IRQ 51 MAC:08:00:3e:26:0a:6b(chip)

usbcore:registered new interface driver rt2800usb

ohci_hcd:USB 1.1 'Open' Host Controller (OHCI) Driver

s3c2410-ohci s3c2410-ohci: S3C24XXOHCI

s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned busnumber 1

s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000

usb usb1:New USB device found, idVendor=1d6b, idProduct=0001

usb usb1:New USB device strings: Mfr=3, Product=2, SerialNumber=1

usb usb1:Product: S3C24XXOHCI

usb usb1:Manufacturer: Linux 3.0.0 ohci_hcd

usb usb1:SerialNumber: s3c24xx

hub1-0:1.0: USB hub found

hub1-0:1.0: 2 ports detected

InitializingUSB Mass Storage driver...

usbcore:registered new interface driver usb-storage

USB MassStorage support registered.

usbcore:registered new interface driver usbserial

usbserial:USB Serial Driver core

USBSerial support registered for ch341-uart

usbcore:registered new interface driver ch341

USBSerial support registered for FTDI USB Serial Device

usbcore:registered new interface driver ftdi_sio

ftdi_sio:v1.6.0:USB FTDI Serial Converters Driver

USBSerial support registered for GSM modem (1-port)

usbcore:registered new interface driver option

option: v0.7.2:USBDriver for GSM modems

USBSerial support registered for pl2303

usbcore:registered new interface driver pl2303

pl2303:Prolific PL2303 USB to serial adaptor driver

mousedev:PS/2 mouse device common for all mice

samsung-tss3c2440-ts: driverattached, registering input device

input: S3C24XX TouchScreen as /devices/virtual/input/input0

S3C24XX RTC, (c) 2004,2006 SimtecElectronics

s3c-rtc s3c2410-rtc: rtc disabled, re-enabling

s3c-rtc s3c2410-rtc: rtc core: registered s3c as rtc0

i2c /dev entries driver

s3c-sdi s3c2440-sdi: mmc0 - using pio, sw SDIO IRQ

usbcore:registered new interface driver usbhid

usbhid:USB HID core driver

S3C24XX_UDA134X SoC Audio driver

UDA134XSoC Audio Codec

asoc:uda134x-hifi <-> s3c24xx-iismapping ok

ALSAdevice list:

  #0: S3C24XX_UDA134X

Netfiltermessages via NETLINK v0.30.

nf_conntrackversion 0.5.0 (929 buckets, 3716 max)

ctnetlinkv0.93: registering with nfnetlink.

xt_time:kernel timezone is -0000

ip_set:protocol 6

IPVS:Registered protocols (TCP, UDP, AH, ESP)

IPVS:Connection hash table configured (size=4096, memory=32Kbytes)

IPVS:Creating netns size=1008 id=0

IPVS:ipvs loaded.

IPVS:[rr] scheduler registered.

IPVS:[wrr] scheduler registered.

IPVS:[lc] scheduler registered.

IPVS:[wlc] scheduler registered.

IPVS:[lblc] scheduler registered.

IPVS:[lblcr] scheduler registered.

IPVS:[dh] scheduler registered.

IPVS:[sh] scheduler registered.

IPVS:[sed] scheduler registered.

IPVS:[nq] scheduler registered.

ip_tables:(C) 2000-2006 Netfilter Core Team

ipt_CLUSTERIP:ClusterIP Version 0.8 loaded successfully

arp_tables:(C) 2002 David S. Miller

TCP cubicregistered

NET:Registered protocol family 17

lib80211:common routines for IEEE802.11 drivers

Registeringthe dns_resolver key type

s3c-rtc s3c2410-rtc: setting system clock to 2047-03-2111:26:04 UTC (2436780364)

usb 1-1:new full speed USB device number 2 using s3c2410-ohci

UBIFS:mounted UBI device 0, volume 0, name "rootfs"

UBIFS:file system size:   37416960 bytes (36540KiB, 35 MiB, 290 LEBs)

UBIFS:journal size:       5160960 bytes (5040KiB, 4 MiB, 40 LEBs)

UBIFS:media format:       w4/r0 (latest is w4/r0)

UBIFS:default compressor: lzo

UBIFS:reserved for root:  0 bytes (0 KiB)

VFS:Mounted root (ubifs filesystem) on device 0:11.

Freeinginit memory: 152K

usb 1-1:New USB device found, idVendor=05e3, idProduct=0606

usb 1-1:New USB device strings: Mfr=1, Product=2, SerialNumber=0

usb 1-1:Product: USB Hub 2.0

hub1-1:1.0: USB hub found

hub1-1:1.0: 4 ports detected

dm9000dm9000.0: eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1

 

Copyright(C) 2013 yangzheng

rootlogin: root

>: ls

apps     data    etc      init     linuxrc proc     sbin     tmp     var

bin      dev     info     lib      mnt     root     sys      usr

>:

>:

 

 

 

你可能感兴趣的:(文件系统)