View: 9159|Reply: 4

32 bit gen_check_code for build kernel

[Copy link]

18

threads

200

posts

888

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
888
Published in 2015-9-7 20:36:07 | Show all floors |Read mode
Edited by magicse at 2015-9-7 14:50

Linux 32 bit ver. of gen_check_code for building kernel and modules under 32 bit linux.
Download unzip and copy it to
/home/lichee/linux-3.4/arch/arm/mach-sunxi/power/brom
and to
/home/lichee/linux-3.4/arch/arm/mach-sunxi/pm/standby
dirs



This thread contains more resources

You need to Log in to download or view,No account?    Register

x
Orange PI 2
www.orangepi.pp.ua

1

threads

47

posts

189

credits

Registered member

Rank: 2

credits
189
Published in 2015-9-7 23:57:17 | Show all floors
I already made a replacement for gen_check_code, called mksunxichecksum, in the kernel patch I uploaded in my OPI2 site http://moinejf.free.fr/opi2/.
The advantage is that you may generate a kernel on the OPI2/plus itself and with a newer compiler (gcc 5.2 is ok).

18

threads

200

posts

888

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
888
 Author| Published in 2015-9-8 02:37:53 | Show all floors
Edited by magicse at 2015-9-7 20:46

O nice )
But now I have truble with next error when building uImage.
I get Segmentation fault (core dumped) when arm-linux-gnueabihf-objdump -D arch/arm/mach-sunxi/pm/standby/standby.elf > arch/arm/mach-sunxi/pm/standby/standby.lst
Could you help me?

if [ "" = "-pg" ]; then if [ arch/arm/mach-sunxi/pm/standby/./../mem_hwspinlock.o != "scripts/mod/empty.o" ]; then /home/lichee/linux-3.4/scripts/recordmcount  "arch/arm/mach-sunxi/pm/standby/./../mem_hwspinlock.o"; fi; fi;
arm-linux-gnueabihf-ld -T arch/arm/mach-sunxi/pm/standby/standby.xn -static   -EL  arch/arm/mach-sunxi/pm/standby/common.o arch/arm/mach-sunxi/pm/standby/standby_clock.o arch/arm/mach-sunxi/pm/standby/standby_ir.o arch/arm/mach-sunxi/pm/standby/standby_key.o arch/arm/mach-sunxi/pm/standby/axp209_power.o arch/arm/mach-sunxi/pm/standby/standby_power.o arch/arm/mach-sunxi/pm/standby/standby_twi.o arch/arm/mach-sunxi/pm/standby/standby_usb.o arch/arm/mach-sunxi/pm/standby/standby_delay.o arch/arm/mach-sunxi/pm/standby/./../pm_debug.o arch/arm/mach-sunxi/pm/standby/./../mem_timing.o arch/arm/mach-sunxi/pm/standby/./../mem_mmu_pc.o arch/arm/mach-sunxi/pm/standby/./../mem_mmu_pc_asm.o arch/arm/mach-sunxi/pm/standby/./../mem_serial.o arch/arm/mach-sunxi/pm/standby/./../mem_printk.o arch/arm/mach-sunxi/pm/standby/./../mem_divlib.o arch/arm/mach-sunxi/pm/standby/./../mem_divlibc.o arch/arm/mach-sunxi/pm/standby/./../mem_int.o arch/arm/mach-sunxi/pm/standby/./../mem_gpio.o arch/arm/mach-sunxi/pm/standby/./../mem_tmr.o arch/arm/mach-sunxi/pm/standby/./../mem_tmstmp.o arch/arm/mach-sunxi/pm/standby/./../mem_clk.o arch/arm/mach-sunxi/pm/standby/standby.o arch/arm/mach-sunxi/pm/standby/./arisc/standby_arisc.o arch/arm/mach-sunxi/pm/standby/./arisc/arisc_hwmsgbox.o arch/arm/mach-sunxi/pm/standby/./arisc/arisc_hwspinlock.o arch/arm/mach-sunxi/pm/standby/./arisc/arisc_message_manager.o arch/arm/mach-sunxi/pm/standby/./../mem_hwspinlock.o -o arch/arm/mach-sunxi/pm/standby/standby.elf -Map arch/arm/mach-sunxi/pm/standby/standby.map

arm-linux-gnueabihf-objdump -D arch/arm/mach-sunxi/pm/standby/standby.elf > arch/arm/mach-sunxi/pm/standby/standby.lst
Segmentation fault (core dumped)

make[3]: *** [arch/arm/mach-sunxi/pm/standby/standby.elf] Error 139
make[2]: *** [arch/arm/mach-sunxi/pm/standby/standby.code] Error 2
make[1]: *** [arch/arm/mach-sunxi/pm] Error 2
make: *** [arch/arm/mach-sunxi] Error 2
Orange PI 2
www.orangepi.pp.ua

1

threads

47

posts

189

credits

Registered member

Rank: 2

credits
189
Published in 2015-9-8 18:14:14 | Show all floors
Edited by moinejf at 2015-9-8 18:18
magicse replied at 2015-9-8 02:37
O nice )
But now I have truble with next error when building uImage.
I get Segmentation fault (core ...

There should be something wrong in your .config, because, according to
  1. arch/arm/mach-sunxi/Makefile
Copy code

there is no generation in arch/arm/mach-sunxi/pm/ for the sun8iw7:
  1. ifneq ($(strip $(CONFIG_ARCH_SUN8I)),)
  2. obj-y += sun8i.o
  3. obj-$(CONFIG_SW_POWERNOW) += powernow.o
  4. ifneq ($(strip $(CONFIG_ARCH_SUN8IW7)),)
  5. obj-$(CONFIG_PM) += power/
  6. else
  7. obj-$(CONFIG_PM) += pm/
  8. endif
  9. endif
Copy code


18

threads

200

posts

888

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
888
 Author| Published in 2015-9-9 17:14:39 | Show all floors
Edited by magicse at 2015-9-9 11:34
moinejf replied at 2015-9-8 12:14
There should be something wrong in your .config, because, according to

there is no generation in a ...

Resolved.
The problems was in
/home/lichee/linux-3.4/arch/arm/mach-sunxi/power/brom
/home/lichee/linux-3.4/arch/arm/mach-sunxi/pm/standby

because there are asm and disasm functions and array allign option for toolchains.
Different toolchains ( gnueabihf 4.4 -4.8) give different errors
But after apply Your patch it's all ok.
uImage compiled well and modules too.

Next riddle - module_layout
For example tv.ko from original Steven Lubuntu 1404 0.9.0
# modprobe --dump-modversions tv.ko
give me next result:  0xa1136ef1 module_layout
And tv.ko from Loboris Lubuntu 1504
give me the same result 0xa1136ef1 module_layout
It's nice ))
But my own module tv.ko that I had built give me 0x9a3f36de module_layout
And this confuses me



Orange PI 2
www.orangepi.pp.ua
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list