I changed the linux kernel start address but i have problem with vmlinux

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I changed the linux kernel start address but i have problem with vmlinux

1,340 Views
delauratfrançoi
Contributor II

Hello,

I work with imx7, I changed the linux kernel start address. I work with linux 4.9.11. I changed files:

- arch/arm/Kconfig I deleted line select AUTO_ZRELADDR in config ARCH_MULTIPLATFORM

- arch/arm/Makefile I added  line MACHINE  := arch/arm/mach-imx 

- creat file arch/arm/march-imx/Makefile.boot with zreladdr-y += 0x81008000
                                                                                params_phys-y := 0x81000100
                                                                                initrd_phys-y := 0x81800000

If I build the linux-imx without clean it is ok. BUt if I clean I error with vmlinux. 

/work_disk/fsl-arm-yocto-bsp/build_sabreimx7/tmp/work-shared/imx7dsabreca/kernel-source/Makefile:969: recipe for target 'vmlinux' failed
| make[2]: *** [vmlinux] Error 1
| Makefile:150: recipe for target 'sub-make' failed
| make[1]: *** [sub-make] Error 2
| Makefile:24: recipe for target '__sub-make' failed
| make: *** [__sub-make] Error 2
| WARNING: exit code 1 from a shell command. 

Can you help me?

Best regard,

Francois.

Labels (2)
0 Kudos
1 Reply

1,130 Views
radhikasomaiya
Senior Contributor II

Hi delauratfrançois ,

For changing load address of zImage and initrd, you can use u-boot environment variables loadaddr and initrd_addr.

Can you please help us to know what is the purpose of changing the address params_phys? As this is used with ATAGs system and currently device tree is used in place of it.

Regards,

Radhika Somaiya.

0 Kudos