Compiling Linux 2.6.34 kernel for mini2440

Publisher:Serendipity99Latest update time:2024-06-28 Source: elecfansKeywords:mini2440  Linux  6 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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
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.










But the backlight and touch seem to be abnormal!

If prompted

  1. dm9000 Ethernet Driver, V1.31

  2. 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:

  1. 1587     if (!is_valid_ether_addr(ndev->dev_addr)) {

  2. 1588         /* try reading from mac */

  3. 1589

  4. 1590         mac_src = "chip";

  5. 1591         for (i = 0; i < 6; i++)

  6. 1592             ndev->dev_addr[i] = ior(db, i+DM9000_PAR);

  7. 1593     }

  8. 1594

  9. 1595  +   memcpy(ndev->dev_addr, "x08x90x90x90x90x90",6);

  10. 1596

  11. 1597     if (!is_valid_ether_addr(ndev->dev_addr))

  12. 1598         dev_warn(db->dev, "%s: Invalid ethernet MAC address. Please "

  13. 1599              "set using ifconfign", ndev->name);


Keywords:mini2440  Linux  6 Reference address:Compiling Linux 2.6.34 kernel for mini2440

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

Cisco plans to lay off more than 4,000 employees to promote restructuring; second quarter revenue fell 6% year-on-year
On the afternoon of February 19, Cisco announced plans to lay off thousands of employees as part of its restructuring aimed at shifting its focus to high-growth areas such as artificial intelligence and software. The supplier said it would cut about 5% of its global workforce, based on 84,900 employees in 2023, which
[Network Communication]
Less than a week after the acquisition, the chip giant started a massive layoff: more than 20,000 people may eventually be laid off
Since Broadcom announced its plan to acquire VMware in May last year, due to the huge amount involved, the biggest uncertainty in the acquisition has been the approval of various countries. In March 2023, VMware warned investors that different legal provisions in China and the United States could lead to legal conflic
[Semiconductor design/manufacturing]
Less than a week after the acquisition, the chip giant started a massive layoff: more than 20,000 people may eventually be laid off
There are currently no plans to bring AirPlay 2 and HomeKit to 2018 TVs
Although LG had previously announced that it would commit to bringing both AirPlay 2 and HomeKit support to certain 2018 TV models, LG now says it has no plans to do so. LG recently brought the Apple TV app to some of its 2018 TVs, but LG has now reversed its decision to support HomeKit and AirPlay 2 on those models
[Mobile phone portable]
There are currently no plans to bring AirPlay 2 and HomeKit to 2018 TVs
Microsoft Surface Go 2 LTE passes FCC certification, supports WiFi 6
   IT Home May 2 news According to foreign media Windows Latest, Microsoft will release Surface Go 2 in May, and related hardware specifications have been leaked. According to the retailer's list, Surface Go 2 has a larger display and smaller bezels. According to the US FCC certification information, Surface Go 2 is a
[Mobile phone portable]
Microsoft Surface Go 2 LTE passes FCC certification, supports WiFi 6
S3C2440 bare metal experiment (6) ----NAND FLASH
1. Nand flash is read and written in page units and erased in block units. Each page is divided into main area and spare area. The main area is used to store normal data, and the spare area is used to store some additional information. 2. S3c2440 supports booting from Nand because there is an internal SRAM buffer ca
[Microcontroller]
Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
"Setting a New Benchmark for GaN Technology", the usually conservative Power Integrations (PI) rarely uses such a striking title to announce a new IC - the 1700V rated GaN InnoMux2, manufactured using the company's proprietary PowiGaN technology, is the industry's first and only 1700V GaN switch IC. At
[Power Management]
Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
Application of I2C of PIC microcontroller (24LC02)
 I2C Bus Features     The main advantages of the I2C bus are its simplicity and effectiveness. Since the interface is directly on the components, the I2C bus takes up very little space, reducing the space on the circuit board and the number of chip pins, reducing the cost of interconnection. The bus can be up to 25 fe
[Microcontroller]
Application of I2C of PIC microcontroller (24LC02)
Two major installation methods of weighing sensors
  Weighing sensor is a commonly used measuring instrument, which is widely used in the fields of industry, electronics, electricity, machine tools, petroleum, shipbuilding, chemical industry, etc. The installation forms of weighing sensor are different, and each installation form of weighing sensor has its own unique a
[Test Measurement]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号