dCore Import Debian Packages to Mountable SCE extensions > Allwinner A10
Native sunxi kernel compile issues
bitonator:
I'm trying to compile the sunxi kernel natively on my Cubieboard A10.
The steps I followed were:
1. importsce build-essential
2. loadsce build-essential
3. cp a10Core-kernel-3.0.42.config (downloaded) .config
4. make oldconfig
5. make
6. mkimage -A arm -O linux -T kernel -C none -a 0x40008000 -e 0x40008000 -n "Linux-
3.0.42" -d zImage uImage (I found the parameters by doing 'file uImage' on the tiny core kernel)
When I use this kernel, the bootloader detects the kernel images
## Booting kernel from Legacy Image at 48000000 ...
Image Name: Linux-3.0.42
Created: 2015-01-18 6:05:28 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3959024 Bytes = 3.8 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 43100000 ...
Image Name: ramdisk
Created: 2015-01-06 14:04:20 UTC
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 3052655 Bytes = 2.9 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting Kernel...
Then, nothing, and after a while I get the bootloader again.
Am I doing something wrong?
roberts:
After step 2.
importsce uboot-mkimage
loadsce uboot-mkimage
.
.
.
Step 5 should be:
make uImage
Drop step 6.
patrikg:
U-boot.
Are you starting the kernel at correct entry point, as you enter in the mkimage.
bootm 0x40008000 0x00000000
roberts:
@bitonator
I used your mkimage parameters directly on zImage to produce uImage.
The resulting uImage was the same as the one created via make uImage.
Booting from the manually created uImage was successful.
So something else must be awry. Did you use the linux-sunxi-g2d source tree?
Perhaps start clean via make sunxi_defconfig?
expresspotato:
I have the same problem when compiling from Fedora, booting hangs with 'Starting Kernel...'
So the boot.scr, uCore, uEnv.txt are all the same from: http://tinycorelinux.net/5.x/armv7/Allwinner-A10/
This is when building the linux-3.0.42 folder. Building the sunxi-linux folder crashes on boot.
Navigation
[0] Message Index
[#] Next page
Go to full version