Try to port the kernel to s3c2440
1. Environment Construction:
1. Download resource pack:
linux-3.0.12.tar.gz (https://www.kernel.org/pub/linux/kernel/v3.0/)
ARM-Linux GCC 4.4.3(http://arm9download.cncncn.com/mini2440/linux/arm-linux-gcc-4.4.3-20100728.tar.gz)
2. Unzip the kernel:
1.tar -xzvf linux-3.0.12.tar.gz
2.cd linux-3.0.12
3.make s3c2410_defconfig
4. Modify Makefile
195行 ARCH ?= arm 196 行CROSS_COMPILE ?= arm-linux-
5. Make menuconfig to add the driver support you need
If the error message Unable to find the ncurses libraries or the is displayed here, you need to install ncurses-devel
Under Ubuntu: sudo apt-get install ncurses
6. Modify the crystal oscillator frequency:
The kernel default crystal oscillator is 16M, but most development boards are 12M, which needs to be modified, otherwise there will be garbled code phenomenon
arch/arm/mach-s3c2440/mach-smdk2440.c
160static void __init smdk2440_map_io(void)
161 {
162 s3c24xx_init_io(smdk2440_iodesc, ARRAY_SIZE(smdk2440_iodesc));
163 s3c24xx_init_clocks(12000000);
164 s3c24xx_init_uarts(smdk2440_uartcfgs, ARRAY_SIZE(smdk2440_uartcfgs)) ;
165 }
7. Modify partition
smdk_default_nand_part[] structure array in arch/arm/plat-s3c24xx/common-smdk.c
My partitions are as follows:
111 static struct mtd_partition smdk_default_nand_part[] = {
112 [0] = {
113 .name = "bootloader",
114 .size = SZ_256K,
115 .offset = 0,
116 },
117 [1] = {
118 .name = "params",
119 .offset = MTDPART_OFS_APPEND,
120 .size = SZ_128K,
121 },
122 [2] = {
123 .name = "kernel",
124 .offset = MTDPART_OFS_APPEND,
125 .size = SZ_4M,
126 },
127 [3] = {
128 .name = "roots",
129 .offset = MTDPART_OFS_APPEND,
130 .size = MTDPART_SIZ_FULL,
131 },
132 };
7.make uImage
8. Burn arch/arm/boot/uImage to the development board
The kernel at this time does not support the yaff file system, but can burn the jffs2 file system
Previous article:s3c2440 ARM9 bare metal driver first article - GPIO driver (assembly)
Next article:IIC bare metal and linux communication, bare metal series - S3C2440IIC communication
Recommended ReadingLatest update time:2024-11-15 07:20
Recommended posts
- EEWORLD University Hall----Xuvod ML51PC0AE
- NuvotonML51PC0AE:https://training.eeworld.com.cn/course/5721ThisisthefirstepisodeofthevideoseriesNuvoton-ML51seriestutorialsandroutineproblemreview. Forasingle-chipmicrocomputer,thefirststepistounderstandandcollect
- 辛昕 MCU
- EEWORLD University Hall----Live Replay: TI Matter Solutions Promote Smart Home Innovation
- Livereplay:TIMattersolutionshelpsmarthomeinnovation:https://training.eeworld.com.cn/course/67907
- hi5 Integrated technical exchanges
- Please recommend a PAL video signal equalization chip or amplifier chip
- PleaserecommendaPALvideosignalequalizationchiporamplifierchip Accordingtoyourparameters,youneedtogototheofficialwebsiteofLT,TI,ROHM,etc.toselectthemodel.Someofthemcanalsobebuiltwithtransistors. Pleasetell
- shijizai Analog electronics
- [MYD-JX8MMA7 development board based on MYB-JX8MMA7 yocto-build system image]
- 2.vmware-ubuntu_yocto-build 2.1.Configurethevirtualmachine OneadvantageofusingavirtualmachineisthatyoucanallocateaseparatevirtualdiskfileandmountitontheLinuxsystem,andsavethe/homedirectory,installedsoft
- mars4zhu Industrial Control Electronics
- 【High-speed wireless debugger】3. New firmware upgrade experience
- Theauthorlistenedtoeveryone'sopinionsandquicklymodifiedaversionofthefirmware.Itcanbesaidthatitwasveryfast.Let'sfirstupgradethedebuggerfirmware.Thefeaturesofthisupgradeareasfollows: Adjustment1:Theworkingmode
- 秦天qintian0303 Embedded System
- Share a wave of ultrasonic power supply information
- Ultrasonicgeneratordrivepowersupply Ultrasonicpowersupplycontrolstrategyfordynamicallymatchedtransducers.rar Designofanultrasonicmotordrivepowersupplywithautomaticfrequencytrackingfunction.rar DevelopmentofPhase-Shi
- okhxyyo Power technology
- 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
- Evaluation of the domestic FPGA Gaoyun GW1N-4 series development board - Software Part 1
- R329 Zhouyi AIPU environment construction and simulation practice
- Current sensor circuit inquiry?
- How to quickly design a pulse oximeter? TI offers tips!
- Summary: BearPi-Hongmeng-BearPi-HM Nano Review Summary
- "In-depth understanding of BootLoader", introducing the development theory, process and examples of BootLoader
- Weekly review information is here~
- Analysis of DSP2407's frame pointer (FP) and stack pointer (SP)
- msp430 MCU rc522 radio frequency program and circuit diagram
- Shenzhen is so beautiful