Hi, look at the attached emails might help.
Regards
Costas
>-----Original Message-----
>From: [email protected] [mailto:[email protected]] On Behalf Of
>tx_moblin
>Sent: 10 April 2009 10:47
>To: Li, Yan I
>Cc: dev
>Subject: [Moblin Dev] usb_error
>
>
> sorry,the mail didn't display correctly,I send it again!
>> I use the MIC1.
>
>
>> I use moblin image-creator to make a installable usb image.its platform
>is menlow-lpia.
>> I want to use the image as following:
>> > umount /media/disk
>> > dd if=menlowpro.img of=/dev/sdc bs=4096
>> it appears some error when plugin the usb into the target device at last
>:
>> > checking device /dev/sda for installation source..
>> > checking device /dev/sdb for installation source..
>> > Found Removable drive at /dev/sdb
>> > Found Boot drive at /dev/sdb
>> > umount:Couldn't umount /dev/sdb:Invalid argument
>> will mount root from /dev/sdb
>> > mount:mounting /dev on /root/dev failed:no such file or directory
>> > mount:mounting /sys on /root/sys failes: no such file or directory
>> > Done
>> > Begin:running /scripts/init-botton...
>> > Mount:mount /root/dev on /dev/.static/dev failed: no such file or
>directory
>> > Done
>> > Mount:mounting /sys on /root/sys failed: no such file or directory
>> > Target filesystem doesn't have /sbin/init
>> > Busybox V1.1.3(Debian 1:1.1.3-5ubuntu7) Built-in shell (ash)
>> > (initramfa)_
>>
>> thank you for your time!
>> xintian
>
>_______________________________________________
>Moblin dev Mailing List
>[email protected]
>
>To manage or unsubscribe from this mailing list visit:
>https://lists.moblin.org/mailman/listinfo/dev or your user account on
>http://moblin.org once logged in.
>
>For more information on the Moblin Developer Mailing lists visit:
>http://moblin.org/community/mailing-lists
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
--- Begin Message ---
Hi All,
If anyone comes across the same problem here what was done to solve it:
1. Install mic 1 from deb package and not with 'git clone ...' this can be
obtained from here:
http://moblin.org/sites/all/files/moblin-image-creator_0.49_all.deb. This fixes
the initramfs problem discussed shown below.
2. Once 1. got fixed, I then got a 'no space error', this was fix by removing
the tick form squashfs from the target configuration file and replacing the
install.sh file with the one attached (Thanks Marcel Wagner for all your help
on this).
Moblin v1 image should now work on a Crownbeach system.
Regards
Costas
>-----Original Message-----
>From: [email protected] [mailto:[email protected]] On Behalf Of
>Stylianou, Costas
>Sent: 23 March 2009 22:42
>To: [email protected]
>Subject: [Moblin Dev] Moblin v1.0 boot problem
>
>Hi,
>
>I built a Moblin v.10 menlow-lpia-ubuntu-hardy-ppa (install USB) image but
>won't boot. My development PC runs Ubuntu 8.10 with version 0.49 of image
>creator.
>
>This is what happens:
>
>FAT: Filesystem panic (dev sdb)
>Invalid access to FAT (entry ...)
>SQUASHFS error: sb_bread failed reading block ...
>SQUASHFS error: unable to reD UID/GID TABLE
>
>mount: Mounting /dev/loop0 on /squashmnt failed: Invalid argument
>Begin: Install Process will begin shortly... ...
>mount: Install /dev on /root/dev failed: No such file or directory
>mount: Install /sys on /root/sys failed: No such file or directory
>mount: Install /proc on /root/proc failed: No such file or directory
>chroot: cannot execute /install.sh: No such file or directory
>Done.
>[snip]
>(initramfs)
>
>
>Any help will be much appreciated!
>
>Thanks
>Costas
>
>
>
>
>
>
>---------------------------------------------------------------------
>Intel Corporation (UK) Limited
>Registered No. 1134945 (England)
>Registered Office: Pipers Way, Swindon SN3 1RJ
>VAT No: 860 2173 47
>
>This e-mail and any attachments may contain confidential material for
>the sole use of the intended recipient(s). Any review or distribution
>by others is strictly prohibited. If you are not the intended
>recipient, please contact the sender and delete all copies.
>
>_______________________________________________
>Moblin dev Mailing List
>[email protected]
>
>To manage or unsubscribe from this mailing list visit:
>https://lists.moblin.org/mailman/listinfo/dev or your user account on
>http://moblin.org once logged in.
>
>For more information on the Moblin Developer Mailing lists visit:
>http://moblin.org/community/mailing-lists
BLOCKED FILE ALERT
A file has been blocked due to the 'Blocked Attachments' rule.
Context: 'install.sh'
Disallowed due to
If you are an Intel employee and internal to the Intel network, visit
[1]Secure Intel to learn more about E-mail attachment options. If you
are not an Intel employee, please contact your Intel sponsor for
additional information..
See your system administrator for further information.
Copyright © 1999-2007 McAfee, Inc.
All Rights Reserved.
[2]http://www.mcafee.com
References
1.
http://secure.intel.com/infosec/response_services/pc+and+network+protection/email+security/email+security.htm
2. http://www.mcafee.com/
--- End Message ---
--- Begin Message ---
Here is the install.sh file.
Best Regards
Costas
#!/bin/bash
# This is the script that will be placed onto the USB flash drive, that will
# run on bootup to install the software onto the device.
# I want us to error out if we use an undefined variable, so we will catch
errors.
set -u
# Read in our config file, if it exists
if [ -f /install.cfg ]
then
echo "Sourcing ./install.cfg"
. /install.cfg
else
echo "ERROR: ./install.cfg not found!"
echo "In script: $0 $*"
sleep 10
halt
fi
#################### usplash functions start
####################################
SPLASHWRITE=0
# Determine if we have usplash_write available
type usplash_write > /dev/null 2>&1 && SPLASHWRITE=1
# Disable usplash, since we want text mode
SPLASHWRITE=0
BOOTDEVICE=$1
# show the progress at status bar.
# $1 = 0-100
splash_progress(){
splash_write "PROGRESS $1"
return 0
}
# display the text no matter whether verbose is set or not
splash_display(){
echo "$@"
splash_write "TEXT-URGENT $@"
return 0
}
# set the splash delay time
splash_delay(){
splash_write "TIMEOUT $1"
return 0
}
# call the usplash_write command, if enabled
splash_write(){
if [ "${SPLASHWRITE}" -eq 1 ]
then
usplash_write "$@"
else:
echo "ussplash_write: $@"
fi
}
####################### usplash functions end ###############################
splash_delay 200
splash_display 'INSTALL..........'
pre_scsi_disk_number=$( ls /sys/class/scsi_disk | wc -l)
found=no
# Find the install disk
while true
do
for try in '1' '2' '3'; do
for device in 'hda' 'hdb' 'sda' 'sdb' 'sdc' 'sdd'; do
echo "checking device: /dev/${device} for installation target"
if [ -e /sys/block/${device}/removable ]; then
if [ "$(cat /sys/block/${device}/removable)" = "0" ]; then
if cat /proc/mounts | grep /dev/${device}
then
continue
else
found="yes"
splash_display "found harddisk at /dev/${device}"
break
fi
fi
fi
done
if [ "$found" = "yes" ]; then
break;
fi
/bin/sleep 5
echo "Did not find an installation target device"
done
if [ "$found" = "yes" ]; then
break;
fi
echo "Trying non-removable drives"
/bin/sleep 5
for device in 'hda' 'hdb' 'sda' 'sdb' 'sdc' 'sdd'; do
echo "checking device /dev/${device} for installation source..."
mount /dev/${device} /mnt
if [ -f /mnt/rootfs.img ] ; then
echo "Found Boot drive at /dev/${device}"
found="yes"
fi
umount /dev/${device}
if [ "$found" = "yes" ]; then
break;
fi
echo "/dev/${device} does not contain a rootfs"
done
if [ "$found" = "yes" ]; then
break;
fi
done
echo "will install to /dev/${device}"
blocks=`fdisk -s /dev/${device}`
cylinders=$((blocks*2/63/255))
splash_display "Deleting Partition Table on /dev/${device} ..."
splash_delay 200
dd if=/dev/zero of=/dev/${device} bs=512 count=2
sync
splash_progress 5
splash_delay 10
splash_display "Creating New Partiton Table on /dev/${device} ..."
splash_delay 200
fdisk /dev/${device} <<EOF
n
p
1
$((boot_partition_size*1000/8192))
n
p
2
$((cylinders-((swap_partition_size+fat32_partition_size)*1000/8192)))
a
1
w
EOF
if [ $swap_partition_size -ne 0 ]
then
fdisk /dev/${device} <<EOF
n
p
3
$((cylinders-(fat32_partition_size*1000/8192)))
t
3
82
w
EOF
if [ $fat32_partition_size -gt 0 ]
then
fdisk /dev/${device} <<EOF
n
p
4
t
4
c
w
EOF
fi
else if [ $fat32_partition_size -gt 0 ]
then
fdisk /dev/${device} <<EOF
n
p
3
t
3
c
w
EOF
fi
fi
sync
splash_progress 10
splash_delay 10
splash_display "Formatting /dev/${device}1 w/ ext3..."
splash_delay 200
mkfs.ext3 /dev/${device}1
sync
splash_progress 20
splash_delay 10
splash_display "Formatting /dev/${device}2 w/ ext3..."
splash_delay 200
mkfs.ext3 /dev/${device}2
sync
splash_progress 60
splash_delay 10
if [ $swap_partition_size -ne 0 ]
then
splash_display "Formatting /dev/${device}3 w/ swap..."
splash_delay 1000
mkswap /dev/${device}3
if [ $fat32_partition_size -ne 0 ]
then
splash_display "Formatting /dev/${device}4 w/ vfat..."
splash_delay 1000
mkfs.vfat /dev/${device}4
fi
else if [ $fat32_partition_size -ne 0 ]
then
splash_display "Formatting /dev/${device}3 w/ vfat..."
splash_delay 1000
mkfs.vfat /dev/${device}3
fi
fi
sync
splash_progress 65
splash_delay 10
splash_display 'Mounting partitions...'
splash_delay 200
mkdir /tmp/boot
mount -o loop -t squashfs /tmp/install/bootfs.img /tmp/boot
mount /dev/${device}2 /mnt
mkdir /mnt/boot
mount /dev/${device}1 /mnt/boot
splash_progress 70
splash_delay 10
splash_display 'Copying system files onto hard disk drive...'
splash_delay 200
cp -av /tmp/boot /mnt
if [ "${use_squashfs}" -eq 1 ]
then
echo "Copying squashfs filesystem into place..."
cp -v /tmp/install/rootfs.img /mnt/boot
else
echo "Setting up NON squashfs filesystem..."
mkdir /tmp/root
mount -o loop -t squashfs /tmp/install/rootfs.img /tmp/root
splash_display 'Copying system ROOT onto hard disk drive...'
cp -av /tmp/root/. /mnt
fi
/usr/sbin/grub-install --root-directory=/mnt /dev/${device}
splash_progress 90
splash_delay 10
splash_display 'Unmounting partitions...'
splash_delay 200
umount /mnt/boot
umount /mnt
umount /tmp/boot
umount /tmp/install
splash_progress 95
splash_delay 10
sleep 1
splash_delay 6000
splash_display "Install Successfully"
# need to call reboot --help and let file system cache hold it, since we will
# unplug USB disk soon, and after that, reboot command will not be accessible.
# The reason why reboot still works sometimes without this is the whole
# "rootfs.img" is cached when it is copied to HD. But when rootfs.img become
# bigger and bigger the whole "rootfs.img" will not be able to fully cached (we
# have found this issue when creating big installation)
reboot --help > /dev/null 2>&1
case $BOOTDEVICE in
usb)
splash_display "Unplug USB Key, System Will Reboot Automatically"
while [ $pre_scsi_disk_number = $(ls /sys/class/scsi_disk | wc -l) ]
do
sleep 1
done
;;
cd)
splash_display "Sysstem Will Reboot after 5 seconds"
sleep 5
;;
esac
splash_progress 100
splash_delay 1
reboot -f
>-----Original Message-----
>From: Robison, Clayne B
>Sent: 31 March 2009 17:26
>To: Stylianou, Costas
>Subject: RE: Moblin v1.0 boot problem
>
>Costas can you resend this message internally with the install.sh contents
>inlined? The script got scrubbed by the Exchange server. Alternatively, you
>might post it somewhere and send a link?
>
>BTW, thanks for figuring this out. My CB has been gathering dust for quite
>some time because of this.
>
>Clayne
>
>
>> -----Original Message-----
>> From: [email protected] [mailto:[email protected]] On Behalf
>> Of Stylianou, Costas
>> Sent: Monday, March 30, 2009 4:38 PM
>> To: Stylianou, Costas; [email protected]
>> Subject: Re: [Moblin Dev] Moblin v1.0 boot problem
>>
>> Hi All,
>>
>> If anyone comes across the same problem here what was done to solve it:
>>
>> 1. Install mic 1 from deb package and not with 'git clone ...' this can
>> be obtained from here:
>> http://moblin.org/sites/all/files/moblin-image-creator_0.49_all.deb.
>> This fixes the initramfs problem discussed shown below.
>>
>> 2. Once 1. got fixed, I then got a 'no space error', this was fix by
>> removing the tick form squashfs from the target configuration file and
>> replacing the install.sh file with the one attached (Thanks Marcel
>> Wagner for all your help on this).
>>
>> Moblin v1 image should now work on a Crownbeach system.
>>
>> Regards
>> Costas
>>
>>
>>
>> >-----Original Message-----
>> >From: [email protected] [mailto:[email protected]] On Behalf
>> >Of Stylianou, Costas
>> >Sent: 23 March 2009 22:42
>> >To: [email protected]
>> >Subject: [Moblin Dev] Moblin v1.0 boot problem
>> >
>> >Hi,
>> >
>> >I built a Moblin v.10 menlow-lpia-ubuntu-hardy-ppa (install USB) image
>> >but won't boot. My development PC runs Ubuntu 8.10 with version 0.49 of
>> >image creator.
>> >
>> >This is what happens:
>> >
>> >FAT: Filesystem panic (dev sdb)
>> >Invalid access to FAT (entry ...)
>> >SQUASHFS error: sb_bread failed reading block ...
>> >SQUASHFS error: unable to reD UID/GID TABLE
>> >
>> >mount: Mounting /dev/loop0 on /squashmnt failed: Invalid argument
>> >Begin: Install Process will begin shortly... ...
>> >mount: Install /dev on /root/dev failed: No such file or directory
>> >mount: Install /sys on /root/sys failed: No such file or directory
>> >mount: Install /proc on /root/proc failed: No such file or directory
>> >chroot: cannot execute /install.sh: No such file or directory Done.
>> >[snip]
>> >(initramfs)
>> >
>> >
>> >Any help will be much appreciated!
>> >
>> >Thanks
>> >Costas
>> >
>> >
>> >
>> >
>> >
>> >
>> >---------------------------------------------------------------------
>> >Intel Corporation (UK) Limited
>> >Registered No. 1134945 (England)
>> >Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47
>> >
>> >This e-mail and any attachments may contain confidential material for
>> >the sole use of the intended recipient(s). Any review or distribution
>> >by others is strictly prohibited. If you are not the intended
>> >recipient, please contact the sender and delete all copies.
>> >
>> >_______________________________________________
>> >Moblin dev Mailing List
>> >[email protected]
>> >
>> >To manage or unsubscribe from this mailing list visit:
>> >https://lists.moblin.org/mailman/listinfo/dev or your user account on
>> >http://moblin.org once logged in.
>> >
>> >For more information on the Moblin Developer Mailing lists visit:
>> >http://moblin.org/community/mailing-lists
>> ---------------------------------------------------------------------
>> Intel Corporation (UK) Limited
>> Registered No. 1134945 (England)
>> Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47
>>
>> This e-mail and any attachments may contain confidential material for
>> the sole use of the intended recipient(s). Any review or distribution by
>> others is strictly prohibited. If you are not the intended recipient,
>> please contact the sender and delete all copies.
--- End Message ---
_______________________________________________
Moblin dev Mailing List
[email protected]
To manage or unsubscribe from this mailing list visit:
https://lists.moblin.org/mailman/listinfo/dev or your user account on
http://moblin.org once logged in.
For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists