| |

VerySource

 Forgot password?
 Register
Search
View: 2031|Reply: 15

S3C2410 driver programming problems, urgent?

[Copy link]

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-17 11:00:01
| Show all posts |Read mode
arm-linux-gcc -D__KERNEL__ -I / friendly-arm / kernel / include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -mapcs -fno-strict-aliasing -fno-common -fno-common -pipe -mapcs- 32 -march = armv4 -mtune = arm9tdmi -mshort-load-bytes -msoft-float -DKBUILD_BASENAME = matrix5-leds.c -DMODULE -c -o matrix5-leds.o matrix5-leds.c
I saw from the Internet that my driver was compiled this way, and the program was also found online. I just bought a development board, I just want to try to compile it successfully, but when I burn it to the board, I use the insmod prompt No module found in object
insmod: cannot insert `/leds.o ': Invalid module format (-1): Exec format error
How to deal with it?
Reply

Use magic Report

0

Threads

18

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-24 09:00:02
| Show all posts
Help you
Reply

Use magic Report

1

Threads

11

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-1-24 16:27:01
| Show all posts
I haven't used 2410, but I know that the kernel version under / friendly-arm / kernel / include is different from the version running on the board.
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-1-30 15:27:01
| Show all posts
Thanks again, keep waiting for reply
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-11 21:00:02
| Show all posts
Your kernel does not support the executable file format you burned into it.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-23 13:30:02
| Show all posts
Problems with your kernel version
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 Invalid IP Address

Post time: 2020-2-23 16:15:01
| Show all posts
2410 Writing off-chip flash
Note that you need to delay at least 300 milliseconds when writing
Read as long as 30 other timings are consistent
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 Netherlands

Post time: 2020-3-3 14:45:01
| Show all posts
Help you

No technical support?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-3-24 23:00:01
| Show all posts
The object file you generated is matrix5-leds.o
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-3-25 13:30:01
| Show all posts
insmod: cannot insert `/leds.o ': Invalid module format (-1): Exec format error

This is the answer. Look at which of your leds.o files is coming from.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list