[Arm-netbook] RAM, uboot

Mike Thompson mpthompson at gmail.com
Fri May 11 23:27:33 BST 2012


I have my system running with a SATA root/home file system and swap.
It still boots the kernel from the mmc DOS partition, but that can't
be fixed as uboot is not yet SATA aware.

At first, I assumed I just needed to change the kernel arguments to so:

setenv bootargs console=ttyS0,115200 root=/dev/sda2 rootfstype=ext4
rootwait fbmem=1

And my /etc/fstab as follows:

# file system    mount point   type    options                  dump pass
proc             /proc         proc    defaults                 0    0
/dev/sda2        /             ext4    defaults                 0    1
/dev/sda3        none          swap    sw                       0    0
/dev/sda5        /home         ext4    defaults                 0    1
/dev/mmcblk0p1   /boot         vfat    defaults                 0    2

But, that didn't work. The system still insisted on mounting the SD
card as root.

I then remembered I had to get these changes in the initramfs so
running the following two commands made everything work:

mkinitramfs -o /boot/initrd.img-3.0.31-1-allwinner-dg+
flash-kernel

This will update the initramfs and uInitrd.sun4i files in /boot so
that the SATA root file system is properly mounted at boot time.

I occasionally see SATA errors such as the following the console, but
so far the system hasn't crashed.

<3>ata1.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x6 frozen
[ 1318.020000] ata1.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x6 frozen
<3>ata1.00: failed command: WRITE FPDMA QUEUED
[ 1318.030000] ata1.00: failed command: WRITE FPDMA QUEUED
<3>ata1.00: cmd 61/48:00:a0:14:06/00:00:01:00:00/40 tag 0 ncq 36864 out
         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 1318.040000] ata1.00: cmd 61/48:00:a0:14:06/00:00:01:00:00/40 tag 0
ncq 36864 out
[ 1318.040000]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask
0x4 (timeout)
<3>ata1.00: status: { DRDY }
[ 1318.050000] ata1.00: status: { DRDY }
<6>ata1: hard resetting link
<6>ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
<6>ata1.00: configured for UDMA/133
<4>ata1.00: device reported invalid CHS sector 0
[ 1318.420000] ata1.00: device reported invalid CHS sector 0
<6>ata1: EH complete


I also see the following errors as well on the console:

<6>kmemleak: 3 new suspected memory leaks (see /sys/kernel/debug/kmemleak)

The indicated kmemleak file doesn't exist so I'm not sure what it is.



More information about the arm-netbook mailing list