Boot from u-boot (1.1.6) in nand
u-boot loads the kernel (4.0) from the first partition (formatted as fat16) in the sd card, and then the kernel starts.
The kernel mounts the second partition in the SD card (formatted as ext3) as the root file system and executes /linuxrc
/linuxrc is started as process 1
u-boot and boot mode
uboot(1.1.6) configuration forlinx_nand_ram256_config
sd card partition 1 (starting from 0, 32M), fat16, storage kernel, setenv bootcmd fatload mmc 0:1 0x50008000 zImage; bootm 0x50008000
That is to say, uboot has fat16 file system and mmc driver, and has fatload command
There is mmc driver in uboot, but forlinx_nand_ram256_config does not compile mmc driver. It needs to be transplanted and sorted out.
kernel
Partition 1 (starting from 0, 32M), fat16, storage kernel, setenv bootcmd fatload mmc 0:1 0x50008000 zImage; bootm 0x50008000
That is to say, uboot has fat16 file system and mmc driver, and has fatload command
uboot(1.1.6) configuration forlinx_nand_ram256_config
Partition 2 (starting from 32M, to the first 2M at the end), ext4, store rootfs, setenv bootargs console=ttySAC0 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait earlyprintk
That is to say, the kernel has the ext4 file system and the mmc driver
rootfs
---------------------------The following are the changes
rootfs (ext3 format, uncompressed 7.8M, compressed 3.5M), refer to the ok6410-a branch of https://github.com/lisider/busybox
rootfs is in the sd card (the sd card has one primary partition, which is formatted as ext3)
Graphics support in rootfs is NULL
Required command
sudo fdisk -l /dev/sdb //Insert the sd card in ubuntu, it will be displayed as /dev/sdb, and then interactively create partitions
sudo mkfs.ext3 /dev/sdb1 //Format the partition as ext3
sudo mount -t ext3 /dev/sdb1 /mnt // Mount the file system
sudo cp rootfs/* /mnt // Fill the file system with the content required by the root file system. The creation of rootfs content needs to refer to the ok6410-a branch of https://github.com/lisider/busybox
sudo umount /mnt/ Unmount the file system
Previous article:Development Environment Construction (II) OK6410A Development Environment Others
Next article:Development environment setup (I) OK6410A Development environment 2 Change environment OK
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- "Thank you for being here, thank you for the gift" - Thanksgiving Day Grab the Building & Give Thank You Gift Event
- Electronic component failure analysis and typical cases
- Hongmeng Development Board Neptune (VI) - Source Code Compilation 3
- When TEA1062 is on a call, the receiver is very quiet and no sound comes out of the MIC
- For CLC and CRC filtering, it is best to have high-frequency capacitors at both ends of the resistor and inductor. Could you please tell me how to configure the high-frequency capacitors?
- 【BG22-EK4108A Bluetooth Development Kit】 1. Test Bluetooth signal strength + data upload and download
- The Bluetooth signal problem has finally come to an end.
- Bypassing and Decoupling
- Japan Kenwood Power Supply Repair
- 【Development related】Detection principles and advantages of laser gas sensors