Ver Fonte

system initial version

Signed-off-by: hongkun <hongkun.cao@cxmt.com>
hongkun há 3 anos atrás
commit
6a1e91e06b
100 ficheiros alterados com 143 adições e 0 exclusões
  1. BIN
      rootfs_decoder/home/decoder
  2. 6 0
      rootfs_decoder/home/startapp.sh
  3. BIN
      rootfs_decoder/mkfs.minix
  4. 57 0
      rootfs_decoder/mkrootfs.sh
  5. 1 0
      rootfs_decoder/rootfs/bin/addgroup
  6. 1 0
      rootfs_decoder/rootfs/bin/adduser
  7. 1 0
      rootfs_decoder/rootfs/bin/ash
  8. 1 0
      rootfs_decoder/rootfs/bin/base64
  9. BIN
      rootfs_decoder/rootfs/bin/busybox
  10. BIN
      rootfs_decoder/rootfs/bin/busybox_new
  11. 1 0
      rootfs_decoder/rootfs/bin/cat
  12. 1 0
      rootfs_decoder/rootfs/bin/catv
  13. 1 0
      rootfs_decoder/rootfs/bin/chgrp
  14. 1 0
      rootfs_decoder/rootfs/bin/chmod
  15. 1 0
      rootfs_decoder/rootfs/bin/chown
  16. 1 0
      rootfs_decoder/rootfs/bin/conspy
  17. 1 0
      rootfs_decoder/rootfs/bin/cp
  18. 1 0
      rootfs_decoder/rootfs/bin/cpio
  19. 1 0
      rootfs_decoder/rootfs/bin/cttyhack
  20. 1 0
      rootfs_decoder/rootfs/bin/date
  21. 1 0
      rootfs_decoder/rootfs/bin/dd
  22. 1 0
      rootfs_decoder/rootfs/bin/delgroup
  23. 1 0
      rootfs_decoder/rootfs/bin/deluser
  24. 1 0
      rootfs_decoder/rootfs/bin/df
  25. 1 0
      rootfs_decoder/rootfs/bin/dmesg
  26. 1 0
      rootfs_decoder/rootfs/bin/dnsdomainname
  27. 1 0
      rootfs_decoder/rootfs/bin/dumpkmap
  28. 1 0
      rootfs_decoder/rootfs/bin/echo
  29. 1 0
      rootfs_decoder/rootfs/bin/ed
  30. 1 0
      rootfs_decoder/rootfs/bin/egrep
  31. 1 0
      rootfs_decoder/rootfs/bin/false
  32. 1 0
      rootfs_decoder/rootfs/bin/fdflush
  33. 1 0
      rootfs_decoder/rootfs/bin/fgrep
  34. 1 0
      rootfs_decoder/rootfs/bin/fsync
  35. 1 0
      rootfs_decoder/rootfs/bin/getopt
  36. 1 0
      rootfs_decoder/rootfs/bin/grep
  37. 1 0
      rootfs_decoder/rootfs/bin/gunzip
  38. 1 0
      rootfs_decoder/rootfs/bin/gzip
  39. BIN
      rootfs_decoder/rootfs/bin/hicore
  40. BIN
      rootfs_decoder/rootfs/bin/hiddrs
  41. BIN
      rootfs_decoder/rootfs/bin/hier
  42. BIN
      rootfs_decoder/rootfs/bin/hiew
  43. BIN
      rootfs_decoder/rootfs/bin/hil2s
  44. BIN
      rootfs_decoder/rootfs/bin/himc
  45. BIN
      rootfs_decoder/rootfs/bin/himd
  46. BIN
      rootfs_decoder/rootfs/bin/himd.l
  47. BIN
      rootfs_decoder/rootfs/bin/himm
  48. 1 0
      rootfs_decoder/rootfs/bin/hostname
  49. 1 0
      rootfs_decoder/rootfs/bin/hush
  50. 1 0
      rootfs_decoder/rootfs/bin/ionice
  51. 1 0
      rootfs_decoder/rootfs/bin/iostat
  52. 1 0
      rootfs_decoder/rootfs/bin/ip
  53. 1 0
      rootfs_decoder/rootfs/bin/ipaddr
  54. 1 0
      rootfs_decoder/rootfs/bin/ipcalc
  55. 1 0
      rootfs_decoder/rootfs/bin/iplink
  56. 1 0
      rootfs_decoder/rootfs/bin/iproute
  57. 1 0
      rootfs_decoder/rootfs/bin/iprule
  58. 1 0
      rootfs_decoder/rootfs/bin/iptunnel
  59. 1 0
      rootfs_decoder/rootfs/bin/kill
  60. 1 0
      rootfs_decoder/rootfs/bin/linux32
  61. 1 0
      rootfs_decoder/rootfs/bin/linux64
  62. 1 0
      rootfs_decoder/rootfs/bin/ln
  63. 1 0
      rootfs_decoder/rootfs/bin/login
  64. 1 0
      rootfs_decoder/rootfs/bin/ls
  65. 1 0
      rootfs_decoder/rootfs/bin/lzop
  66. 1 0
      rootfs_decoder/rootfs/bin/makemime
  67. 1 0
      rootfs_decoder/rootfs/bin/mkdir
  68. BIN
      rootfs_decoder/rootfs/bin/mke2fs
  69. BIN
      rootfs_decoder/rootfs/bin/mkfs.ext2
  70. BIN
      rootfs_decoder/rootfs/bin/mkfs.ext3
  71. BIN
      rootfs_decoder/rootfs/bin/mkfs.ext4
  72. 1 0
      rootfs_decoder/rootfs/bin/mknod
  73. 1 0
      rootfs_decoder/rootfs/bin/mktemp
  74. 1 0
      rootfs_decoder/rootfs/bin/more
  75. 1 0
      rootfs_decoder/rootfs/bin/mount
  76. 1 0
      rootfs_decoder/rootfs/bin/mountpoint
  77. 1 0
      rootfs_decoder/rootfs/bin/mpstat
  78. 1 0
      rootfs_decoder/rootfs/bin/mt
  79. 1 0
      rootfs_decoder/rootfs/bin/mv
  80. 1 0
      rootfs_decoder/rootfs/bin/netstat
  81. 1 0
      rootfs_decoder/rootfs/bin/nice
  82. 1 0
      rootfs_decoder/rootfs/bin/pidof
  83. 1 0
      rootfs_decoder/rootfs/bin/ping
  84. 1 0
      rootfs_decoder/rootfs/bin/ping6
  85. 1 0
      rootfs_decoder/rootfs/bin/pipe_progress
  86. 1 0
      rootfs_decoder/rootfs/bin/powertop
  87. 1 0
      rootfs_decoder/rootfs/bin/printenv
  88. 1 0
      rootfs_decoder/rootfs/bin/ps
  89. 1 0
      rootfs_decoder/rootfs/bin/pwd
  90. 1 0
      rootfs_decoder/rootfs/bin/reformime
  91. 1 0
      rootfs_decoder/rootfs/bin/rev
  92. 1 0
      rootfs_decoder/rootfs/bin/rm
  93. 1 0
      rootfs_decoder/rootfs/bin/rmdir
  94. 1 0
      rootfs_decoder/rootfs/bin/rpm
  95. 1 0
      rootfs_decoder/rootfs/bin/run-parts
  96. 1 0
      rootfs_decoder/rootfs/bin/scriptreplay
  97. 1 0
      rootfs_decoder/rootfs/bin/sed
  98. 1 0
      rootfs_decoder/rootfs/bin/setarch
  99. 1 0
      rootfs_decoder/rootfs/bin/setserial
  100. 0 0
      rootfs_decoder/rootfs/bin/sh

BIN
rootfs_decoder/home/decoder


+ 6 - 0
rootfs_decoder/home/startapp.sh

@@ -0,0 +1,6 @@
+#!/bin/sh
+
+echo "==================== This is test only ===================="
+if [ -e /home/decoder ] ; then
+	/home/decoder &
+fi

BIN
rootfs_decoder/mkfs.minix


+ 57 - 0
rootfs_decoder/mkrootfs.sh

@@ -0,0 +1,57 @@
+echo "*********************************"
+echo "*     make root file system     *"
+echo "*********************************"
+
+mkdir -p ./mnt ./rootfs ./davapp
+#cp -dR /home/wangqian/workdir/rootfs/* ./rootfs/
+#chmod 777 ./rootfs/
+
+#cp -dR /tftpboot/ttt/* ./rootfs/
+#cp -dR /home/wangqian/workdir/rootfs/* ./rootfs/
+#cp -dR ./davincifile/* ./davapp
+#mv -f ./rootfs/etc/passwd_ram ./rootfs/etc/passwd
+
+#rm -f ./rootfs/dav/1280.422 
+#rm -f ./rootfs/dav/1920.422 
+#rm -f ./rootfs/dav/lib_tls.tar.bz2
+
+#mv -f ./rootfs/dav/* ./davapp/
+
+###### 以下制作initrd ########
+dd if=/dev/zero of=./initrd bs=1024 count=65536
+/sbin/losetup /dev/loop0 ./initrd
+#./mkfs.minix /dev/loop0
+mkfs.ext2 /dev/loop0
+
+mount /dev/loop0 ./mnt
+chmod 777 ./mnt/
+rm -rf ./mnt/lost+found
+cp -dR ./rootfs/* ./mnt/
+umount ./mnt
+
+/sbin/losetup -d /dev/loop0
+gzip -9 ./initrd
+mv -f initrd.gz system/rootfs.img
+###### 制作initrd完成 ########
+
+###### 以下制作yaffs2镜像 ########
+#mv -f ./initrd.gz ./rootfs.img
+#cp ./rootfs.img ./davapp/rootfs.img
+
+#./mkyaffs2img 1 ./davapp ./davinci.img
+
+#cp ./davinci.img /tftpboot/
+
+################### clean dir ###################
+rm -rf ./mnt 
+#rm -rf ./rootfs 
+rm -rf ./davapp
+
+echo "*********************************"
+echo "*     make yafffs2 system     *"
+echo "*********************************"
+
+rm -fr system.yaffs*
+tar czvf app.tar.gz home
+mv app.tar.gz system/
+mkyaffs2image610 system  system.yaffs.2k_4bit 1 2

+ 1 - 0
rootfs_decoder/rootfs/bin/addgroup

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/adduser

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/ash

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/base64

@@ -0,0 +1 @@
+busybox

BIN
rootfs_decoder/rootfs/bin/busybox


BIN
rootfs_decoder/rootfs/bin/busybox_new


+ 1 - 0
rootfs_decoder/rootfs/bin/cat

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/catv

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/chgrp

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/chmod

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/chown

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/conspy

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/cp

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/cpio

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/cttyhack

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/date

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/dd

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/delgroup

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/deluser

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/df

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/dmesg

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/dnsdomainname

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/dumpkmap

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/echo

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/ed

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/egrep

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/false

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/fdflush

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/fgrep

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/fsync

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/getopt

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/grep

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/gunzip

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/gzip

@@ -0,0 +1 @@
+busybox

BIN
rootfs_decoder/rootfs/bin/hicore


BIN
rootfs_decoder/rootfs/bin/hiddrs


BIN
rootfs_decoder/rootfs/bin/hier


BIN
rootfs_decoder/rootfs/bin/hiew


BIN
rootfs_decoder/rootfs/bin/hil2s


BIN
rootfs_decoder/rootfs/bin/himc


BIN
rootfs_decoder/rootfs/bin/himd


BIN
rootfs_decoder/rootfs/bin/himd.l


BIN
rootfs_decoder/rootfs/bin/himm


+ 1 - 0
rootfs_decoder/rootfs/bin/hostname

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/hush

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/ionice

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/iostat

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/ip

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/ipaddr

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/ipcalc

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/iplink

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/iproute

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/iprule

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/iptunnel

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/kill

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/linux32

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/linux64

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/ln

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/login

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/ls

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/lzop

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/makemime

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/mkdir

@@ -0,0 +1 @@
+busybox

BIN
rootfs_decoder/rootfs/bin/mke2fs


BIN
rootfs_decoder/rootfs/bin/mkfs.ext2


BIN
rootfs_decoder/rootfs/bin/mkfs.ext3


BIN
rootfs_decoder/rootfs/bin/mkfs.ext4


+ 1 - 0
rootfs_decoder/rootfs/bin/mknod

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/mktemp

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/more

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/mount

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/mountpoint

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/mpstat

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/mt

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/mv

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/netstat

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/nice

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/pidof

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/ping

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/ping6

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/pipe_progress

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/powertop

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/printenv

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/ps

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/pwd

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/reformime

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/rev

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/rm

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/rmdir

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/rpm

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/run-parts

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/scriptreplay

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/sed

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/setarch

@@ -0,0 +1 @@
+busybox

+ 1 - 0
rootfs_decoder/rootfs/bin/setserial

@@ -0,0 +1 @@
+busybox

+ 0 - 0
rootfs_decoder/rootfs/bin/sh


Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff