Porting the kernel to s3c2440

Publisher:第二眼帅哥Latest update time:2022-04-25 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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


Reference address:Porting the kernel to s3c2440

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

S3C2440 IIS Configuration
Overview: The built-in IC audio bus of S3C2440 supports 8-bit and 16-bit data output of CODEC (encoding and decoding). IIS supports bus data format and MSB alignment format. The interface provides FIFO access DMA transfer mode to replace interrupts and supports simultaneous alternating reception and transmission of
[Microcontroller]
S3C2440 IIS Configuration
Detailed Explanation of S3C2440 Memory Controller
The memory space of S3C2440 is divided into different blocks. When the CPU sends an address to the memory controller, the memory controller sends the corresponding chip select signal to the chip select pin according to the address range to realize the control of different devices. BANK0 BUS WIDTH
[Microcontroller]
Detailed Explanation of S3C2440 Memory Controller
s3c2440 bare metal touch screen
1.0, Touch screen and LCD The touch screen and LCD are two independent screens, but there is a correspondence between them. Simply put, a coordinate point on the touch screen corresponds to a pixel point on the LCD. When we press the touch screen, the system calculates the coordinates of the location, and then finds
[Microcontroller]
Design of LED backlight power saving system based on S3C2440
  Energy-saving and environmental protection technology is the focus of the world's current attention. In LCD display modules, the power consumption of the backlight can account for more than 50% of the total power consumption. Especially in display products below 10in, such as mobile phones, PDAs, MP3s and other port
[Power Management]
Design of LED backlight power saving system based on S3C2440
ARM9 S3C2440 - Initialization configuration of interrupts and timers
      ARM9  S3C2440 has a lot of registers, which is one of the differences between it and single-chip microcomputer. ARM programming is mainly about register operations, but with so many registers, it is easy to forget the setting of a certain register. If you can summarize the steps of register configuration so that
[Microcontroller]
S3C2440—4. Clock system
1. Introduction to S3C2440 clock system 1. Bus and clock S3C2440 has two buses: AHB high-speed bus and APB peripheral bus. Corresponding to three clock sources: FCLK of ARM chip CPU HCLK of AHB bus PCLK of APB bus The operating frequencies of the three clocks are: (It can be seen that compared with the 72M
[Microcontroller]
S3C2440—4. Clock system
s3c2440 bare metal - spi programming - 3-gpio simulate spi drive OLED
To operate the OLED, connect to the OLED through three lines (SCK, DO, CS). There is no DI here because 2440 only transmits data to the OLED but does not receive data. gpio_spi.c implements gpio simulation spi and is responsible for spi communication. For OLED, there are special instructions and data formats. T
[Microcontroller]
S3C2440 bare metal experiment (7) ---- LCD driver
LCD is actually quite simple as long as you understand the timing. Now the LCD driver under LINUX has good support for processors like Samsung. You only need to modify some parameters. If it is a chip-level driver, it is more complicated, mainly involving Framebuffer, which will make people crazy. After completing the
[Microcontroller]

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
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号