The linux-2.6.34 kernel has been released, so I downloaded it and compiled it. There is basically no need to modify it. I just need to modify two lines of Makefile
But the backlight and touch seem to be abnormal!
If prompted
dm9000 Ethernet Driver, V1.31
dm9000 dm9000: eth%d: Invalid ethernet MAC address. Please set using ifconfig
Then edit device/net/dm9000.c and insert a line of code as follows:
1587 if (!is_valid_ether_addr(ndev->dev_addr)) {
1588 /* try reading from mac */
1589
1590 mac_src = "chip";
1591 for (i = 0; i < 6; i++)
1592 ndev->dev_addr[i] = ior(db, i+DM9000_PAR);
1593 }
1594
1595 + memcpy(ndev->dev_addr, "x08x90x90x90x90x90",6);
1596
1597 if (!is_valid_ether_addr(ndev->dev_addr))
1598 dev_warn(db->dev, "%s: Invalid ethernet MAC address. Please "
1599 "set using ifconfign", ndev->name);
ARCH ?= arm
CROSS_COMPILE ?= arm-linux- //This is the cross-compilation tool
Then run make mini2440_defconfig
to modify arch/arm/mach-s3c2440/mach-mini2440.c
+#include
static void __init mini2440_map_io(void)
{
+ unsigned int value; //tekkaman for dm9000
s3c24xx_init_io(mini2440_iodesc, ARRAY_SIZE(mini2440_iodesc));
s3c24xx_init_clocks(12000000);
s3c24xx_init_uarts(mini2440_uartcfgs, ARRAY_SIZE(mini2440_uartcfgs));
+
+//******************************tekkaman for dm9000********************************
+//config the bwscon for bank 4
+ value = __raw_readl(S3C2410_BWSCON);
+ value &= ~(S3C2410_BWSCON_WS4|
+ S3C2410_BWSCON_ST4|
+ S3 C2410_BWSCON_DW4_32);
+ value |= (S3C2410_BWSCON_ST4|
+ S3C2410_BWSCON_DW4_16);
+ __raw_writel(value, S3C2410_BWSCON);
+
+//config the bankcon4
+ value = 0;
+ value = (S3C2410_BANKCON_Tacs4|
+ S3C2410_BANKCON_Tcos4|
+
S3C2410_BANKCON_Tacc14|
+
S3C2410_BANKCON_Tcoh4
|
+ S3C2410_BANKCON_Tcah4
|
+
S3C2410_BANKCON_Tacp6
|
+
s3c2410_gpio_pullup(S3C2410_GPF(7), 0);
+//**********************************tekkaman for dm9000********************************
}
Make again, ten minutes later, the kernel is OK.
For the test, I use uboot+NFS to start.
Previous article:Uncompressing Linux...done, booting the kernel solution
Next article:Solve the full-duplex problem of mini2440 sound card to achieve simultaneous recording and playback
Recommended ReadingLatest update time:2024-11-15 17:00
- Popular Resources
- Popular amplifiers
- Network Operating System (Edited by Li Zhixi)
- Microgrid Stability Analysis and Control Microgrid Modeling Stability Analysis and Control to Improve Power Distribution and Power Flow Control (
- MATLAB and FPGA implementation of wireless communication
- Introduction to Internet of Things Engineering 2nd Edition (Gongyi Wu)
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
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- 【ST NUCLEO-G071RB Review】_03_Breathing light experiment
- Problems that DC constant current source cannot solve
- TI-DSP Family
- I found out that GigaDevice has become a RISC-V MCU tool chain partner. Will it finally take action after GD32V103?
- [GD32E503 Review] 07 Review of SDIO Bus Driver SD Card (Part 2)
- Recommend a data acquisition card based on Ethernet bus NET-2411
- Why is it sufficient to represent a scalar field with F(X,Y,Z), while a vector field requires three functions: P(X,Y,Z) Q(X,Y,Z) R(X,Y,Z)
- CC2640R2F Bluetooth debugging - change device name
- Selection of external memory for DSP
- How can I simulate the signal receiving process of the 125KHZ card reader/writer circuit?