zfyseu
Posts: 29
Joined: Fri Jun 10, 2016 12:31 pm

problems about building a raspbian kernel

Wed Jul 27, 2016 9:04 am

Hello,everyone!

I try to follow the link "https://www.raspberrypi.org/documentati ... uilding.md" to build my own raspbian kernel.

Everything seems go well. However after I run the command "make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=mnt/ext4 modules_install"

there are nothing in the directory mnt/ext4.

Is there anyone know how to solve the problem?
Thanks!

zfyseu
Posts: 29
Joined: Fri Jun 10, 2016 12:31 pm

Re: problems about building a raspbian kernel

Wed Jul 27, 2016 11:21 am

I have known the reasons.

the "mnt/ext4" should be "/mnt/ext4"

however it can't boot.

Is there anyone know where to find the "bootcode.bin " and "start.elf"?

Thanks!

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: problems about building a raspbian kernel

Thu Jul 28, 2016 6:41 am

Get the config with
sudo modprobe configs
zcat /proc/config.gz


Get the bootcode etc. from https://github.com/Hexxeh/rpi-firmware/ ... master.zip

Get the kernel source with https://github.com/Notro/rpi-source read the Wiki for that at https://github.com/Notro/rpi-source/wiki
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

zfyseu
Posts: 29
Joined: Fri Jun 10, 2016 12:31 pm

Re: problems about building a raspbian kernel

Thu Jul 28, 2016 7:18 am

Hello, DougieLawson!

Do you know how to edit the kernel option when cross compile the raspbian kernel?

Thanks.

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: problems about building a raspbian kernel

Thu Jul 28, 2016 7:53 am

make oldconfig # to read an existing config file
make menuconfig # to use the config editor
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

zfyseu
Posts: 29
Joined: Fri Jun 10, 2016 12:31 pm

Re: problems about building a raspbian kernel

Thu Jul 28, 2016 8:10 am

Thanks!

I have tried what you said.
however when I run "make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs"
it will returns:
"scripts/kconfig/conf --silentoldconfig Kconfig
*

Restart config... * *
Configure standard kernel features (expert users) * Configure standard kernel features (expert users) (EXPERT) [Y/?] y Enable 16-bit UID system calls (UID16) Y/n/? "
Do you know how to deal with it?

Thanks!

Return to “General discussion”