[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] qemu-system-arm error when emulatting firmware
From: |
poxyran |
Subject: |
Re: [Qemu-discuss] qemu-system-arm error when emulatting firmware |
Date: |
Thu, 2 Nov 2017 11:55:59 -0300 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
It doesn't have anything in /dev, no static files are located in that
folder. I guess they are created in runtime.
This device uses mdev instead of udev, which seems to be the
light-weight alternative to udev for embedded devices.
mdev reads the mdev.conf located at /etc/mdev.conf:
address@hidden:~/dcs-942l/binary_blob.bin.swap_unpacked/initramfs/etc$ cat
mdev.conf
sd.* 0:0 660 */sbin/automount.sh $MDEV
mmc.* 0:0 660 */sbin/automount.sh $MDEV
but looking at /sbin/automount.sh I don't see anything related to tty:
address@hidden:~/dcs-942l/binary_blob.bin.swap_unpacked/initramfs$ cat
sbin/automount.sh
#!/bin/sh
MOUNT_PATH="/mnt/usb"
VOLUME_PATH="/var/www/volumes/local"
MOUNT=/bin/mount
UMOUNT=/bin/umount
MKDIR=/bin/mkdir
domount() {
M=`mount | grep $1`
if [ "$M" = "" ]; then
if [ ! -d "$MOUNT_PATH" ]; then
$MKDIR -p "$MOUNT_PATH"
fi
$MOUNT -t vfat /dev/$1 "$MOUNT_PATH" && echo -n "/dev/$1" >
/tmp/sddev
[ -f "/tmp/WirelessModel" ] && model=$( tdb get System ModelW_ss
) || model=$( tdb get System Model_ss )
[ ! -d $MOUNT_PATH/$model ] && $MKDIR $MOUNT_PATH/$model
ln -sf $MOUNT_PATH/$model $VOLUME_PATH
else
$UMOUNT -lf "$MOUNT_PATH" && rm /tmp/sddev
rm $VOLUME_PATH
fi
}
test=$(echo $1 | grep -re "mmcblk.p")
if [ "$test" != "" ]; then
domount $1
else
exit 1
fi
exit $?
On 11/2/2017 10:49 AM, Peter Maydell wrote:
> If it has devices in /dev/ as static things in the filesystem,
> the answer is mknod. If it doesn't then you're going to need
> to figure out how it is setting up /dev/ (udev?) and how to
> configure that to add the right node.