Unable to boot pcDuino

Ask questions about Arch Linux ARM. Please search before making a new topic.

Re: Unable to boot pcDuino

Postby jardigital » Mon Jun 24, 2013 9:42 am

I have problem

I used official manual to instal arch linux to PCDUINO : http://archlinuxarm.org/platforms/armv7/pcduino.

I prepared SD card 16MB FAT, the second as ext4.

when i write bootloader to SD card with this code:
dd if=pcduino/sunxi-spl.bin of=/dev/mmcblkX bs=1024 seek=8
dd if=pcduino/u-boot.bin of=/dev/mmcblkX bs=1024 seek=32

the first partition (FAT partition) become unreadable.

when i use this:
mount /dev/mmcblkXp1 /tmp/boot
system wrote me:
monut: you mast first set file system .....

note.
When I do not write bootloader to SD card, mounting first partition is ok

I spent with this a lot of time already but nothing... :(

I aslo try procedure with diskmanager - make bootable SD card with ubuntu and then write archlinux into. But nothing
only blue sceen, no signal, system not started. note (bootable SD card with ubuntu wokrs good.)

Have somebody imgage of sd card with arch linux that works on PCDUINO?

Is there anyone who does it work? And can you send me the image SD card with functional archlinux for PCDUINO?
(for example using Win32DiskImager)
Pease help ;)
jardigital
 
Posts: 2
Joined: Mon Jun 24, 2013 8:59 am

Re: Unable to boot pcDuino

Postby WarheadsSE » Tue Jun 25, 2013 3:46 pm

Pay attention to the first block used by the first partition. This should be something like 2048, not a sometimes default of 63.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Unable to boot pcDuino

Postby jardigital » Mon Jul 01, 2013 8:08 am

$this->bbcode_second_pass_quote('WarheadsSE', 'P')ay attention to the first block used by the first partition. This should be something like 2048, not a sometimes default of 63.


I don't understand what you means 2048 or 63. I'm not a specialist in linux :lol: . Could you for me explain.

Or is possible show me some script to do it.

Or is there someone who works on PCDUINO with Archlinux?
And he could share the experience how he did it (instalation)?
jardigital
 
Posts: 2
Joined: Mon Jun 24, 2013 8:59 am

Re: Unable to boot pcDuino

Postby pepedog » Mon Jul 01, 2013 8:37 am

If you create partitions from scratch with say fdisk /dev/sda, and say n (for new partition) it will offer you a value.
The system needs the first number of blocks free, the boot stuff is written in a raw fashion, not as file system that can be read.
So you burn another OS, note with fdisk how partions start and end so raw area is not damaged.

Kernel is then usually in first (fat) partition, it could be called uImage, zImage, kernel.img
Rootfs in second partition, you must keep matching modules for the kernel, they are in /lib/modules, in arch they go in /usr/lib/modules
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Unable to boot pcDuino

Postby drebelox » Thu Jul 25, 2013 12:17 am

### On a clean SD card:

Run lsblk to find name of SD card


### If not clean run fdisk /dev/sdX :

d - to delete

1 - to delete first partition

d - to delete (should automatically delete the next partition)

w - to write partition table to disk


### Download Tarballs

wget http://archlinuxarm.org/os/sun4i/Mele-bootloader.tar.gz

wget http://archlinuxarm.org/os/ArchLinuxARM ... est.tar.gz

tar xzf Mele-bootloader.tar.gz

### Run script to create partitions

./mkA10card.sh /dev/sdX (replace X with actual name)

### Create Temp folders and mount partitions

mkdir /tmp/boot

mkdir /tmp/arch

mount /dev/sdb1 /tmp/boot

mount /dev/sdb2 /tmp/arch

### Extract and Copy Files to Partitions

tar -zxf ArchLinuxARM-sun4i-latest.tar.gz -C /tmp/arch

cp /tmp/arch/boot/uImage /tmp/boot/uImage

cp script.bin /tmp/boot/script.bin

cp uEnv.txt /tmp/boot/uEnv.txt

### Edit uEnv.txt

nano /tmp/boot/uEnv.txt

boot_mmc=fatload mmc 0 0x43000000 ${fexfile}; fatload mmc 0 0x48000000 ${kernel$
extraargs=rootwait disp.screen0_output_mode=EDID:1280x720p60 hdmi.audio=EDID:0
fexfile=script.bin

### Create Directory and Extract Hardware Pack

mkdir hwpack

cd hwpack

wget http://dl.linux-sunxi.org/amery/sunxi-3 ... ack.tar.xz

tar xzf cubieboard_hwpack.tar.xz

### Copy HWPack to Partitions

cd kernel

cp * /tmp/boot

cd ..

cd bootloader

cp * /tmp/boot

cd ..

cd rootfs

cd lib

cp -Rv * /tmp/arch/lib/

cd ..

cd etc

cp -Rv * /tmp/arch/etc/

cd ..

### Sync and Unmount

sync

umount /dev/sdX* (replace X with actual name)
drebelox
 
Posts: 1
Joined: Thu Jul 25, 2013 12:16 am

Re: Unable to boot pcDuino

Postby WarheadsSE » Thu Jul 25, 2013 2:28 am

So then, install and install a different and unrelated kernel?

Seems kinda borked.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Previous

Return to User Questions

Who is online

Users browsing this forum: No registered users and 15 guests