Hi Chang, Greg,
I think Chang build up Microwindows under KDE window manager or not logon in
root level. The problem can be solved when you run GNOME window manager, for
example. Alternatively, you may enter the following command and then make
xconfig without error.
su -
make xconfig
You have to choose ARM Linux instead of native Linux on the pop-up window,
choose touch screen accordingly.
Secondly, you type the following command to create the elf file.
make clean
make
You should see demo programs in bin subdirectory including nano-X, nanomw, mine,
.... etc.
Finally, you mount the ramdisk and then copy most demo programs to the ramdisk.
mount -o loop -t ext2 ramdisk /mnt
mkdir /mnt/microwin/bin
cp <demo program> /mnt/microwin/bin
umount /mnt
cat ramdisk | gzip -v9 >ramdisk.gz
and then download the zImage and ramdisk.gz by using angelboot utility.
Unluckily, I find the ramdisk size is not big enough to hold all demo programs.
Do anyone know how to increase the ramdisk size?
Please advise.
Now, you should run and see a mine game in your Assabet board but the touch
screen seem not work.
To Greg,
I find there may be a program bugs in the touch screen driver mou_ts.c of
Microwindows.
static int PD_Read(MWCOORD *px, MWCOORD *py, MWCOORD *pz, int *pb)
{
/* read a data point */
short data[3]; /* it should be short data[4]; */
int bytes_read;
bytes_read = read(pd_fd, data, sizeof(data));
if (bytes_read != sizeof(data)) {
if (errno == EINTR || errno == EAGAIN)
return 0;
return -1;
}
*px = (MWCOORD)data[0]; /* should be data[1] */
*py = (MWCOORD)data[1]; /* should be data[2] */
*pb = (data[2]>0?MWBUTTON_L:0); /* should be data[0] */
*pz = 0;
if((*px == -1 || *py == -1) && *pb >= 0)
return 3; /* only have button data */
else if((*px == -1 || *py == -1) && *pb < 0)
return 0; /* don't have any data */
else
return 2; /* have full set of data */
}
Am I doing correct? Anyway, I can play a mine game under Microwindows on Assabet
now. Very cool!
Try if you find the above information is useful.
By the way, I have the following problems. Please advise.
1. I want to run vnc program on Assabet. What should I do to connect to the host
computer?
What configuration should I do to activate the network since I even cannot ping
the host computer?
2. How to configure the FLTK, eg. Makefile such that I can run FLTK on Assabet?
3. How can I use the keyboard and mouse in Assabet?
4. How can I turn on the back light of LCD for clear image? (As you may know, it
is too dim to see the image on LCD without back light on)
How to program Board Control Register (0x12000000) in kernel such that the
back light is turnned on by default?
5. How can I activate the sound codec such that I can play mp3 on Assabet?
May be too much... discuss later. Thank for all guy who give valuable
information in the past. I do have to work hard to cater know-how since I am
novice in linux at present.
:-)
Eric Wong (Hifi Wong),
(You may call me Hifi Wong, which is derived from my Chinese name H.F. Wong. I
was first runner-up in Micromouse competition in 1991 in Hong Kong and got award
prize in International Micromouse competition in 1992. My robot mouse is called
Hifi1, Hifi3, two version. Unluckily, my robot mouse is all written in assembly
language, hardly to modify and add intelligence. I do have an ambitious to use
embedded linux to build a smart robot mouse in the coming future. Was everyone
interested in it? Maybe, who is now working on embedded linux was a robot mouse
builder in the past. Please contact me as you see this message. Keep in touch,
hobbyist)
[EMAIL PROTECTED] on 09/14/2000 06:10:47 PM
To: ERIC WONG/INF/HKG_VTH/VTECH
cc:
Subject: About "Microwindows" Problem
Dear Sir :
I'm sorry to disturb you , I find you success install "Microwindows"
at the Assabet
in the http://lists.arm.linux.org.uk/pipermail/linux-arm/ . Now we can
dwonload kernel
(linux-2.4.0-test5-rmk1-np1) and ramdisk to Assabet ,but in Microwindows is
failed ,
Can you help me ? I download "microwindows-0.88pre11.tar.gz" from
ftp://microwindows.org/pub/microwindows/ ,and command :
#make xconfig
Show :
Application initialization failed: no display name and no $DISPLAY
environment ariable
Error in startup script: invalid command name "wm"
while executing
"wm title . "Microwindows configuration""
(file "./xconfigure" line 70)
make: *** [xconfig] Error 1
Can you tell me how to setup it ? And If program are successfully built up ,
how to download
Demo program to Assabet ?
Thanks,
Regards,
SShin Chang
FLAT PANEL DISPLAY ENGINEERING,
Video Display, Delta Electronic-ChungLi
Tel:03-4526107 ext. 853
E-mail :[EMAIL PROTECTED]
�i�@�Y
FPD�u�{��
�x�F�q�l���c�t ���c�u�~�ϪF���3��