
SH7670 SHLinux –
Technical Guide
8
MPC Data LTD 1.1 2380/UD02
2) fdisk massfile.img
Enter the following sequence of commands to the menu.
x : enter the expert menu.
c : set the cylinders
1 : This is only a theoretical number as we don't have a physical drive - but one is the easiest number to manage
r : return to main menu
n : New partition
p : Create a Primary Partition
1 : Partition 1
1 : First cylinder is 1
t : Set the partition type
e : W95 Fat 16 (LBA)
w : Write and quit
3) You can now use this file as a parameter to the ‘g_file_storage’ gadget. When first accessed Windows should detect
that the drive is clean and asks you if you would like to format the drive.
4) Please see /etc/rc for an example of how the mass storage device is loaded and how the modules are chosen at boot
time to decide which mode the board will operate in.
Note:
By default both USB drivers (Host + Function) are pre-built into the BSP, you select which driver to load during the boot
process (by pressing SW3). You must set the dip-switches (SW4) prior to booting the device, when switching the USB mode.
Known Observations
The Web Front End is not as responsive as the button response time. There is a great deal more processing being performed,
through scripting and the /bin/sh shell. This could be improved in the future by taking a single binary approach, or solving
the shared library issues.
The Frame Buffer Viewer application (FBV) uses ‘mmap’ to obtain a pointer to the frame buffer. This call has known
limitations on the µClinux platform and so the FBV passes flags to the kernel that are unexpected. The kernel responds to
this by outputting a "BUG" warning from nommu.c. This is harmless and can be ignored or hidden by selecting to hide BUG
warnings in the kernel configuration.
The USB Pen Drive is not always loaded completely. It may be necessary upon insertion, to remove and re-insert the pen
drive if it does not mount successfully. The drive is successfully mounted when the ‘Web Front End’ shows the “Unmount”
option.
The MAC Address must be valid for the Web Application to function. By default the board is programmed with a valid MAC
address.
Comentários a estes Manuais