在内核中加入对EXT4的支持(没有做完!!!!)(分色排版)

 

在内核中加入对EXT4的支持(没有做完!!!!)

 

 

大文实验室/大文哥

壹捌陆捌零陆捌捌陆捌贰

wb4916 AT qq.com

完成时间:2017/7/15 17:45

版本:V1.0

 

SDK:全志R16+tina v2.1

开发板:SC3817R

 

 

1、在内核中加入对EXT4的支持

rootroot@cm-System-Product-Name:/home/wwt/ubuntu_tinav2.1$

rootroot@cm-System-Product-Name:/home/wwt/ubuntu_tinav2.1$ cd lichee/linux-3.4/

rootroot@cm-System-Product-Name:/home/wwt/ubuntu_tinav2.1/lichee/linux-3.4$ cp .config bak1_orig.conifig

rootroot@cm-System-Product-Name:/home/wwt/ubuntu_tinav2.1/lichee/linux-3.4$

rootroot@cm-System-Product-Name:/home/wwt/ubuntu_tinav2.1/lichee/linux-3.4$ make ARCH=arm menuconfig

General setup  --->

[ ] open by fhandle syscalls

修改为:

[*] open by fhandle syscalls

 

[*] Networking support  --->

--- Networking support

Networking options  --->

<*> Packet socket

<*> Unix domain sockets

< >   UNIX: socket monitoring interface

修改为:

<*> Packet socket

<*> Unix domain sockets

<*>   UNIX: socket monitoring interface

 

File systems  --->

< > Kernel automounter version 4 support (also supports v3)

修改为:

<*> Kernel automounter version 4 support (also supports v3)

 

 

 

 

2、编译打包刷机之后:

[   22.154173] dhd_wlfc_hostreorder_init(): successful bdcv2 tlv signaling, 64

[   22.162549] wl_android_wifi_on: Success

[   22.168009] p2p0: p2p_dev_addr=96:a1:a2:c6:49:d6

[   22.245273] dhd_open: Exit ret=0

[   25.755624] sndpcm_startup,l:1688,pa_vol:40

 

root@TinaLinux:/#

root@TinaLinux:/# df -h

Filesystem                Size      Used Available Use% Mounted on

rootfs                 1007.9M     33.3M    923.4M   3% /

/dev/root                46.5M     18.1M     28.4M  39% /rom

tmpfs                   250.0M     20.0K    250.0M   0% /tmp

/dev/by-name/rootfs_data

                       1007.9M     33.3M    923.4M   3% /overlay

overlayfs:/overlay     1007.9M     33.3M    923.4M   3% /

tmpfs                   512.0K         0    512.0K   0% /dev

/dev/mmcblk0p1            1.6G     34.4M      1.5G   2% /mnt/SDCARD

/dev/by-name/UDISK        1.6G     34.4M      1.5G   2% /mnt/UDISK

/dev/by-name/boot         4.0M      3.1M    898.0K  78% /boot

/dev/by-name/boot-res

                          8.0M     39.0K      7.9M   0% /boot-res

root@TinaLinux:/#

root@TinaLinux:/#

root@TinaLinux:/# mount

rootfs on / type rootfs (rw)

/dev/root on /rom type ext4 (rw,noatime)

proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)

sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)

tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)

/dev/by-name/rootfs_data on /overlay type ext4 (rw,relatime,data=ordered)

overlayfs:/overlay on / type overlayfs (rw,noatime,lowerdir=/,upperdir=/overlay)

tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)

devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)

/dev/mmcblk0p1 on /mnt/SDCARD type ext4 (rw,sync,relatime,data=ordered)

debugfs on /sys/kernel/debug type debugfs (rw,noatime)

/dev/by-name/UDISK on /mnt/UDISK type ext4 (rw,sync,relatime,data=ordered)

/dev/by-name/boot on /boot type vfat (ro,sync,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=remount-ro)

/dev/by-name/boot-res on /boot-res type vfat (ro,sync,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=remount-ro)

root@TinaLinux:/#

root@TinaLinux:/#

root@TinaLinux:/# cat /proc/partitions 

major minor  #blocks  name

 

 179        0    3817472 mmcblk0

 179        1    1675264 mmcblk0p1

 179        2       1024 mmcblk0p2

 179        3          1 mmcblk0p3

 179        5       1024 mmcblk0p5

 179        6       4096 mmcblk0p6

 179        7    1048576 mmcblk0p7

 179        8    1048576 mmcblk0p8

 179        9       1024 mmcblk0p9

 179       10       1024 mmcblk0p10

 179       32       1024 mmcblk0boot1

 179       16       1024 mmcblk0boot0

root@TinaLinux:/#

 

 

 

 

3、在WIN7的命令行中使用ADB:

Microsoft Windows [版本 6.1.7600]

版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

 

c:\>adb push linaro-ubuntu-server.img /mnt/UDISK

2465 KB/s (943718400 bytes in 373.728s)

 

 

 

 

4、在串口终端中:

 

(大概2-3分钟:)

root@TinaLinux:/mnt/UDISK# dd if=linaro-ubuntu-server.img of=/dev/mmcblk0p7 bs=1M

 

 

只能按硬件reset按键重启:

[    2.528772] sunxi-budget-cooling sunxi-budget-cooling: Cooling device registered: thermal-budget-0

[    2.541375] =========GPS========= :gsp not used in configuration

[    2.548155] ALSA device list:

[    2.551659]   #0: audiocodec

[    2.555701] [mmc]: sdc2 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 8 timing UHS-DDR50 dt B

[    2.566893] EXT4-fs (mmcblk0p7): couldn't mount as ext3 due to feature incompatibilities

[    2.651099] EXT4-fs (mmcblk0p7): couldn't mount as ext2 due to feature incompatibilities

[    2.794950] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: (null)

[    2.804180] VFS: Mounted root (ext4 filesystem) on device 179:7.

[    2.811240] Freeing init memory: 164K

Mount failed for selinuxfs on /sys/fs/selinux:  No such file or directory

[    3.057593] init: plymouth-upstart-bridge main process (69) terminated with status 1

[    3.066563] init: plymouth-upstart-bridge main process ended, respawning

[    3.108321] init: plymouth-upstart-bridge main process (79) terminated with status 1

[    3.117220] init: plymouth-upstart-bridge main process ended, respawning

[    3.128223] init: ureadahead main process (72) terminated with status 5

[    3.155177] init: plymouth-upstart-bridge main process (83) terminated with status 1

[    3.164144] init: plymouth-upstart-bridge main process ended, respawning

[    4.107142] systemd-udevd[233]: inotify_add_watch(6, /dev/mmcblk0, 10) failed: No such file or directory

[    4.122657] systemd-udevd[236]: inotify_add_watch(6, /dev/mmcblk0p1, 10) failed: No such file or directory

[    4.122895] systemd-udevd[233]: inotify_add_watch(6, /dev/mmcblk0boot0, 10) failed: No such file or directory

[    4.133493] systemd-udevd[235]: inotify_add_watch(6, /dev/mmcblk0boot1, 10) failed: No such file or directory

[    4.242373] systemd-udevd[233]: inotify_add_watch(6, /dev/zram0, 10) failed: No such file or directory

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值