boot partition is mounted read-only even though specify rw
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-linaro (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
while executing tool flash-kernel, it seems boot partition is originally mounted rw as desired. However, during the execution of the tool, and after we have written to the mounted file system, its not being reported as a read-only file system, causing subsequent writes not to sucessfully complete.
Running with build 20100902-0 and flashing kernel to 20100822-0
+ echo Using u-boot partition: /dev/mmcblk0p1
Using u-boot partition: /dev/mmcblk0p1
+ mktemp -d
+ TMPMOUNT=
+ mount /dev/mmcblk0p1 /tmp/tmp.aL5wD1VOmN
+ printf Creating backups of uImage and uInitrd...
Creating backups of uImage and uInitrd... + [ -e /tmp/tmp.
+ cp /tmp/tmp.
+ [ -e /tmp/tmp.
+ cp /tmp/tmp.
[ 239.728942] FAT: Filesystem error (dev mmcblk0p1)
[ 239.734558] fat_free_clusters: deleting FAT entry beyond EOF
[ 239.741424] FAT: Filesystem has been set read-only
+ echo done.
done.
+ printf Generating kernel u-boot image...
Generating kernel u-boot image... + mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n Ubuntu Kernel -d /boot/vmlinuz-
mkimage: Can't open /tmp/tmp.
+ cleanup
root@localhost:
/dev/mmcblk0p2 on / type ext3 (rw,errors=
none on /proc type proc (rw,noexec,
none on /sys type sysfs (rw,noexec,
fusectl on /sys/fs/
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,
none on /var/lock type tmpfs (rw,noexec,
none on /lib/init/rw type tmpfs (rw,nosuid,
/dev/mmcblk0p1 on /tmp/tmp.aL5wD1VOmN type vfat (rw)
root@localhost:
MLO boot.ini boot.scr u-boot.bin uImage uImage.bak uInitrd uInitrd.bak
I think this was related to the write protect gpio wrong in an older u-boot. I think it is fixed now.