Opendroid original, reprinted please note
Join the QQ Group 81410571
Keywords: Android, Linux, sdcard, S3C2440, armv4, filesystem
During the compilation process, refer to pandatv's masterpiece "S3C2410/2440 (armv4t) transplantation tutorial". This article describes how to place the root directory of Android on the SD card.
1. Linux kernel Section
1) SD card support
Make menuconfig
Select device drivers ---> to enter
Select <*> MMC/SD card support ---> to enter
Select as follows:
│ --- MMC/SD card support │
│ [*] MMC debugging │
│ [*] Allow unsafe resume (dangerous) │
│ *** MMC/SD Card Drivers *** │
│ <*> MMC block Device Driver │
│ [*] Use bounce buffer for simple hosts │
│ [*] Check card status on Resume
│ <> Sdio UART/GPS class support │
│ <> MMC host test driver │
│ *** MMC/SD host controller drivers *** │
│ <> Secure Digital Host Controller Interface Support │
│ <> MMC/SD over SPI │
│ <*> Samsung s3c SD/MMC Card Interface Support
2) ext2 File System Support (vfat is not supported for Android startup)
Make menuconfig
Select File Systems ---> to enter
│ <*> Second extended FS Support │
│ [*] Ext2 extended attributes │
│ [*] Ext2 POSIX access control lists │
│ [*] Ext2 Security labels │
│ [*] Ext2 execute in place support │
│ <*> Ext3 Journalling File System Support │
│ [*] Ext3 extended attributes │
│ [*] Ext3 POSIX access control lists │
│ [*] Ext3 Security labels
2. SD card
1) format the file system to ext2/ext3
Run sudo mkfs. ext2/dev/sdxxxx.
Note:/dev/sdxxxx is the SD card node on the PC. The specific viewing method is to enter cat
/Proc/Partitions command (this command is used to view the partitions in the system) to see which one is more. In addition, before executing the mkfs. ext2 command
SD card umount (umount/dev/sdxxxx)
2) prepare files
The modification of data, system, and init. RC is exactly the same as that of pandatv's documents for NFS preparation. After completing the configuration, run CP on the SD card (Mount first and then CP)
3. Development Board
1) download Kernel
2) Set bootargs: setenv bootargs console = ttysac0, 115200 mem = 64 m
Root =/dev/mmcblk0 init =/init
IP = 192.168.0.110: 192.168.0.104: 192.168.0.1: 255.255.255.0: eth0: Off
NOTE: If your SD card node on the team is not/dev/mmcblk0, modify it on your own. This can be seen in the Linux Startup log. I added the following IP settings myself. Don't like it, huh, huh
3) set bootdelay to 3. It is said that the SD card Initialization is slow. It seems that this problem has not occurred yet. But it is better to prompt