Jump to content
  • 0

Udoo-Quad core Kernel 4.0.8 issue


Alf

Question

I was trying to install the udoo kernel but got stuck with this error:

root@udoo:/tmp/4.0.8# ls -la
total 32968
drwxr-xr-x 2 root  root      4096 Jul 29 14:21 .
drwxrwxrwx 5 root root     4096 Jul 29 14:21 ..
-rw-r--r-- 1 root  root  16875520 Jul 13 11:30 4.0.8-udoo-next.tar
-rw-r--r-- 1 root  root     11204 Jul 13 11:30 linux-dtb-4.0.8-udoo_1.8_armhf.db
-rw-r--r-- 1 root  root     49792 Jul 13 11:30 linux-firmware-image-4.0.8-udoo_b
-rw-r--r-- 1 root  root   6844194 Jul 13 11:30 linux-headers-4.0.8-udoo_1.8_armb
-rw-r--r-- 1 root  root   9096354 Jul 13 11:30 linux-image-4.0.8-udoo_1.8_armhfb
-rw-r--r-- 1 root  root    769836 Jul 13 11:30 linux-libc-dev_1.8_armhf.deb
-rw-r--r-- 1 root  root     97604 Jul 13 11:30 linux-u-boot-4.0.8-udoo_1.8_armhb
root@udoo:/tmp/4.0.8# dpkg -i linux-image-4.0.8-udoo_1.8_armhf.deb
dpkg: error processing archive linux-image-4.0.8-udoo_1.8_armhf.deb (--install):
 package architecture (armhf) does not match system (armel)
Errors were encountered while processing:
 linux-image-4.0.8-udoo_1.8_armhf.deb

 

Am I using the right package for udoo quad?

Alf

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

And remember to add this boot script:

 

/boot/boot.cmd

setenv bootargs root=/dev/mmcblk0p1 rootfstype=ext4 rootwait console=tty1 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=3
2 ahci_imx.hotplug=1 quiet
ext2load mmc 0 0x18000000 /boot/dtb/imx6q-udoo.dtb
ext2load mmc 0 0x12000000 /boot/zImage
bootz 0x12000000 - 0x18000000

And convert it to the uboot format:

mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr

And of course adjust according to your conditions. This is for one partition SD card. If you have first FAT than some extra work is needed.

Link to comment
Share on other sites

  • 0

Thank you for all your help so far.

Here is where I am stuck now:

 

root@udoo:/data/tmp/4.0.8# ls -la
total 32968
drwxr-xr-x 2 root  root      4096 Jul 29 14:21 .
drwxrwxrwx 6 root root     4096 Jul 29 20:00 ..
-rw-r--r-- 1 root  root  16875520 Jul 13 11:30 4.0.8-udoo-next.tar
-rw-r--r-- 1 root  root     11204 Jul 13 11:30 linux-dtb-4.0.8-udoo_1.8_armhf.deb
-rw-r--r-- 1 root  root     49792 Jul 13 11:30 linux-firmware-image-4.0.8-udoo_1.8_armhf.deb
-rw-r--r-- 1 root  root   6844194 Jul 13 11:30 linux-headers-4.0.8-udoo_1.8_armhf.deb
-rw-r--r-- 1 root  root   9096354 Jul 13 11:30 linux-image-4.0.8-udoo_1.8_armhf.deb
-rw-r--r-- 1 root  root    769836 Jul 13 11:30 linux-libc-dev_1.8_armhf.deb
-rw-r--r-- 1 root  root     97604 Jul 13 11:30 linux-u-boot-4.0.8-udoo_1.8_armhf.deb
root@udoo:/data/tmp/4.0.8# dpkg -i linux-image*.deb
(Reading database ... 158795 files and directories currently installed.)
Preparing to unpack linux-image-4.0.8-udoo_1.8_armhf.deb ...
Unpacking linux-image-4.0.8-udoo (1.8) over (1.8) ...
Setting up linux-image-4.0.8-udoo (1.8) ...
root@udoo:/data/tmp/4.0.8# dpkg -i linux-u-boot*.deb
(Reading database ... 158795 files and directories currently installed.)
Preparing to unpack linux-u-boot-4.0.8-udoo_1.8_armhf.deb ...
Unpacking linux-u-boot-4.0.8-udoo (1.8) over (1.8) ...
Setting up linux-u-boot-4.0.8-udoo (1.8) ...
root@udoo:/data/tmp/4.0.8# dpkg -i linux-dtb*.deb
(Reading database ... 158795 files and directories currently installed.)
Preparing to unpack linux-dtb-4.0.8-udoo_1.8_armhf.deb ...
Unpacking linux-dtb-4.0.8-udoo (1.8) over (1.8) ...
Setting up linux-dtb-4.0.8-udoo (1.8) ...
root@udoo:/data/tmp/4.0.8# cd /boot
root@udoo:/boot# nano boot.cmd
root@udoo:/boot# mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr
-bash: mkimage: command not found

root@udoo:~# apt-get install u-boot-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  u-boot-tools
0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
Need to get 71.6 kB of archives.
After this operation, 207 kB of additional disk space will be used.
Get:1 http://ftp.uk.debian.org/debian/jessie/main u-boot-tools armel 2014.10+dfsg1-5 [71.6 kB]
Fetched 71.6 kB in 0s (443 kB/s)  
Selecting previously unselected package u-boot-tools.
(Reading database ... 158795 files and directories currently installed.)
Preparing to unpack .../u-boot-tools_2014.10+dfsg1-5_armel.deb ...
Unpacking u-boot-tools (2014.10+dfsg1-5) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up u-boot-tools (2014.10+dfsg1-5) ...

 

root@udoo:/boot# mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr
Image Name:   
Created:      Wed Jul 29 20:10:18 2015
Image Type:   ARM Linux Script (uncompressed)
Data Size:    280 Bytes = 0.27 kB = 0.00 MB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 272 Bytes = 0.27 kB = 0.00 MB
root@udoo:/boot# ls
boot.cmd  config-4.0.8-udoo  dtb.old            uImage    vmlinuz-4.0.8-udoo
boot.scr  dtb             System.map-4.0.8-udoo  uImage.bak    zImage
root@udoo:/boot#

When I reboot I get this:

 

 

                        
                                                                            
In:    serial                                                                   
Out:   serial                                                                   
Err:   serial                                                                   
Net:   using phy at 6                                                           
FEC [PRIME]                                                                     
Hit any key to stop autoboot:  0                                                
switch to partitions #0, OK                                                     
mmc0 is current device                                                          
343 bytes read in 106 ms (2.9 KiB/s)                                            
Running bootscript from mmc ...                                                 
## Executing script at 12000000                                                 
35681 bytes read in 150 ms (231.4 KiB/s)                                        
6450576 bytes read in 928 ms (6.6 MiB/s)                                        
Kernel image @ 0x12000000 [ 0x000000 - 0x626d90 ]                               
## Flattened Device Tree blob at 18000000                                       
   Booting using the fdt blob at 0x18000000                                     
   Using Device Tree in place at 18000000, end 1800bb60                         
                                                                                
Starting kernel ...

 

Any suggestions where I am going wrong?

Link to comment
Share on other sites

  • 0

You are doing everything O.K.

 

Change console output to serial to see what's going on and where it's stuck.

setenv bootargs root=/dev/mmcblk0p1 rootfstype=ext4 rootwait console=ttymxc1,115200
Link to comment
Share on other sites

  • 0

I will give that a go in the evening - just checked and I'm running ext3 on my sd card:

root@udoo:~# fsck -N /dev/mmcblk0p1
fsck from util-linux 2.25.2
[/sbin/fsck.ext3 (1) -- /dev/mmcblk0p1] fsck.ext3 /dev/mmcblk0p1

 

so I'm guessing I have to change ext4 to 3 in the setenv command?

setenv bootargs root=/dev/mmcblk0p1 rootfstype=ext3 rootwait console=ttymxc1,115200

Link to comment
Share on other sites

  • 0

Hello,

 

I have been trying to compile a new kernel for UDOO Quad, using the site instruction and the default config modified (I only added not removed), I succeded but, the new options were not included in the new kernel.

 

I was trying to compile the new kernel with iptables nat support (Netfilter), but It seems that the new options were not included in the new compiled kernel.

 

I am trying to build a VPN server, but I can't using the default kernel for UDOO quad.

 

Can you please include in the standard release of UDOO quad (Vanilla) kernel support for VPN (netfilter).

 

I always receive this error: "iptables v1.4.21: can't initialize iptables table 'nat': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded."

 

Thank you very much.

 

You did a very great job with UDOO Quad distros !!!

 

Chris

Link to comment
Share on other sites

  • 0

Sorry, I forgot to mention, I was trying to compile Jessie 4.0.8. Everything went ok, but the new selected options (netfilter) were still not included in the new compiled kernel.

 

It will be wonderfull if you will include netfilter by default.

 

Thanks a lot.

 

Chris

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines