magicse post at 2015-9-7 20:36:07

32 bit gen_check_code for build kernel

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



moinejf post at 2015-9-7 23:57:17

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

magicse post at 2015-9-8 02:37:53

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   -ELarch/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: *** Error 139
make: *** Error 2
make: *** Error 2
make: *** Error 2

moinejf post at 2015-9-8 18:14:14

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
arch/arm/mach-sunxi/Makefile
there is no generation in arch/arm/mach-sunxi/pm/ for the sun8iw7:
ifneq ($(strip $(CONFIG_ARCH_SUN8I)),)
obj-y += sun8i.o
obj-$(CONFIG_SW_POWERNOW) += powernow.o
ifneq ($(strip $(CONFIG_ARCH_SUN8IW7)),)
obj-$(CONFIG_PM) += power/
else
obj-$(CONFIG_PM) += pm/
endif
endif

magicse post at 2015-9-9 17:14:39

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 :lol
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 :funk:



page: [1]
View full version: 32 bit gen_check_code for build kernel