ODROID-X image not booting

Install Arch Linux ARM on other devices.

ODROID-X image not booting

Postby Maximus32 » Thu Jun 20, 2013 11:07 am

The new odroid-x image (15-jun-2013) is not booting on my odroid-x. Is the image suitable for the first odroid-x, the odroid-x2 or both? The old image is booting just fine but is too old to update (I read and tried the instructions on the home page, and in the forums, ). So the new image is very much welcome.

PS: I'm posting this in the "Community-Supported" section, but the odroid-x/x2 is supported. Where is the correct section for the odroids?
Maximus32
 
Posts: 8
Joined: Sun Jun 09, 2013 7:32 pm

Re: ODROID-X image not booting

Postby pepedog » Thu Jun 20, 2013 12:15 pm

You could try other kernels
http://us.mirror.archlinuxarm.org/armv7h/core/

Extract to root of mounted rootfs with tar xf linux.........
Move boot/zImage to first partition of card/emmc
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: ODROID-X image not booting

Postby WarheadsSE » Thu Jun 20, 2013 12:36 pm

If you have the serial, there is a temporary fix which solves a uboot issue where it tells the kernel it has 2G when it only has 1.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: ODROID-X image not booting

Postby Maximus32 » Fri Jun 21, 2013 5:33 pm

I tried the kernel from the old image but it's not booting. Probably becouse of a difference in u-boot. The old kernel has the device tree blob as a separe file in the boot partition. Where the new image probably has the blob in u-boot/kernel.

I do not have the serial cable :-(.
Maximus32
 
Posts: 8
Joined: Sun Jun 09, 2013 7:32 pm

Re: ODROID-X image not booting

Postby pepedog » Fri Jun 21, 2013 6:42 pm

I have been playing with uboot on odroid U2, it uses boot.scr scripts.
http://myplugbox.com/od/
I haven't said how to create boot.scr wrap, and how to partition.
To partition, start 5M in, first partition of 5M fat32, second is ext4
Zimage and boot.scr goes on fat, rootfs on ext4
This on emmc or sd card, I had mine all on card but have tried on emmc
command to make boot.scr
pacman -S uboot-mkimage
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Boot script" -d bootcmd-file.txt /media/sd-card/boot.scr
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: ODROID-X image not booting

Postby pepedog » Sat Jun 22, 2013 1:26 pm

I have done a rootfs for odroid u2, it may boot the x2 also and u/x if you choose right boot.scr
http://myplugbox.com/odrootfs/
The dd is with bs=1M, it can be burned to sd card, or emmc
The fat contains 4 extra boot.scr, filename describes where rootfs should be, and memory size. choose which one and cp to boot.scr
The card contains the uboot as described above, btw, 5M blank, 5M fat32
Card based on 2Gb, if you resize note start block of second partition (22528)
$this->bbcode_second_pass_code('', 'Command (m for help): d
Partition number (1,2, default 2):
Partition 2 is deleted

Command (m for help): n
Partition type:
p primary (1 primary, 0 extended, 3 free)
e extended
Select (default p):
Using default response p
Partition number (2-4, default 2):
First sector (2048-3911679, default 2048): 22528
Last sector, +sectors or +size{K,M,G} (22528-3911679, default 3911679):
Using default value 3911679
Partition 2 of type Linux and of size 1.9 GiB is set

Command (m for help): w')
After sync/reboot run resize2fs

If you need odroid x/x2 kernel,
cd /pathtosecondpartion/
wget http://us.mirror.archlinuxarm.org/armv7 ... pkg.tar.xz
tar xf linux-odroid-x-3.0.80-1-armv7h.pkg.tar.xz
copy boot/zImage to first partition
sync before umount

Fully updated using netctl, if you want wireless run wifi-menu, then systemctl enable netctl-auto@wlan0
Also you probably want to install kernel properly
pacman -Sy linux-odroid-x --force
fstab takes care of fat part being /boot, so nothing to do there
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: ODROID-X image not booting

Postby Maximus32 » Sun Jun 23, 2013 10:35 am

I downloaded the rootfs and burned it to the SD card. Then I copied the "boot.scr.sca1.1M" to "boot.scr" (assuming sca1 means SD card? and 1M means 1G?)
Result: LED D6 steady blue. LED D5 toggling on/off every second. No network and no display (over hdmi).

Next I downloaded the kernel, installed it to the SD card exacly as you mentioned... but the result was the same. It didn't boot.
Maximus32
 
Posts: 8
Joined: Sun Jun 09, 2013 7:32 pm

Re: ODROID-X image not booting

Postby Maximus32 » Sun Jun 23, 2013 1:33 pm

So I went back to the old image that I was able to boot. And then tried to put your u2 rootfs on top of it. The first thing I noticed is the kernel: the old image has 3.6.5-1-ARCH, where the kernel in your image is 3.0.80-1-ARCH. So I added the 'old' /lib/modules/* to it.

What's also different is the /etc/fstab. The old image needed /boot on /dev/mmcblk0p2 and your image has it on /dev/mmcblk0p1. After that the image booted and I was able to login. Your image is even so new that all packages where up to date, hooray!

So as a last step I did a:
pacman -Sy linux-odroid-x --force
To get the package system fixed, and the kernel updated to the "latest" version (3.0.80-1). But now it no longer boots! I tried to changing back /etc/fstab but it didn't help. Perhaps the 3.6 and 3.0 kernels have different bootloaders? What can I do to fix this?
Maximus32
 
Posts: 8
Joined: Sun Jun 09, 2013 7:32 pm

Re: ODROID-X image not booting

Postby pepedog » Sun Jun 23, 2013 1:50 pm

You old image that boots, how about replacing all files (except zImage and /usr/lib/modules) with the content I just sent you?

If that doesn't work can you upload the zip of hat image somewhere?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: ODROID-X image not booting

Postby Maximus32 » Sun Jun 23, 2013 2:13 pm

I did exactly that, replacing all files except boot partition and modules. And it does boot. But when I update the kernel the system fails to boot.

The old image is just the old archlinuxarm image (ArchLinuxARM-2012.11-odroidx.img.gz) it has been replaced a few days ago with a new image (ArchLinuxARM-2012.06-odroid-x.img.gz (I think 2012 should be 2013.. since it is a new image) ). But the new image is not booting.

Do you mean uploading an image of the sd card that's now broken? Or of the original archlinuxarm image?
Maximus32
 
Posts: 8
Joined: Sun Jun 09, 2013 7:32 pm

Next

Return to [Please read announcement] Community-Supported Devices

Who is online

Users browsing this forum: No registered users and 5 guests