Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Free Dos on Educake
2014 年 03 月 21 日
13:04:44
asian55
Moderator
Forum Posts: 22
Member Since:
2014 年 03 月 01 日
Offline

I have wasted a whole week so far with NO luck getting FreeDos running on the Educake. The challange of having no console redirection just in VDX-6300 board makes it almost impossible to troubleshoot the booting problems that might be caused from the SD card imaging programs such as DD or Windows Disk Imager. I have used the later two programs with no luck of getting dos directing the console prompt to the COM4 of the Educake.

The only one image worked for me so far was the Debian image (sdcard-debian-minimal.img) which I downloaded from the forums here.

I use the DD with the freedos.img image and then I edit my autoexec.bat to add the line : ctty com4
So far I have never seen any chrachter coming out of the com4 of this educake.

What am I doing wrong here? Please help!

2014 年 03 月 24 日
10:28:32
anthony
Admin
Forum Posts: 31
Member Since:
2013 年 07 月 04 日
Offline

if you download freedos.img from 86duino website, please remove "v86boot" from auto batch file. and add ctty com4 in auto line

Anthony

2014 年 03 月 24 日
11:23:19
tim
New Member
Forum Posts: 4
Member Since:
2014 年 03 月 24 日
Offline

I also had some trouble with this. Simply putting ctty com4 in the autoexec.bat doesn't work.
After some searching I found a useful program to dump the crossbar and UART registers.
https://gist.github.com/nonakap/9045101

According to the schematics the D9 com port is UART5 (IO port 5) which is indeed set up to be at the location of COM4. That was all correct but I noticed that the crossbar-port group register for port 5 was set to GPIO group when it should be set to the COM group. In fact, all the COM ports are set up as GPIO by default on my unit.

I made a simple utility to fix this. It sets up crossbar port 5 as a COM port.

#include "Arduino.h"
#include
#include
#include
#include
int main(void)
{
io_Init();
int cbbase = sb_Read16(0x64);
void *cb_cookie = io_Alloc(IO_USE_PORTIO, cbbase & 0xfffe, 0xb0); // XXX and fffe?
if (cb_cookie != NULL)
{
io_Out8(cb_cookie, 0x80 + 5, 2);
}
io_Free(cb_cookie);
io_Close();
}

I've uploaded a compiled exe file here for anybody that might need it. Just put a uart4 line in autoexec.bat before any com port stuff. It's worked for me so far...
http://members.optusnet.com.au.....ducake.zip

2014 年 03 月 24 日
12:00:47
asian55
Moderator
Forum Posts: 22
Member Since:
2014 年 03 月 01 日
Offline

Tim,
I am just STATIC NOW. I want to thank you million times now!!!

And even thought I didn't test your code yet, but your explanation makes lotssss of sense.

I have wasted my whole spring break trying to get ANYTHING out of this com port with NO luck. I have tried literally 5 SD cardsdifferent sizes, and different imaging utilities, and all with NO luck!

now that I am going back to school tomorrow, I will be trying your code right now and report back here with my findings!

THANK YOU MY HERO!

2014 年 03 月 24 日
14:08:30
asian55
Moderator
Forum Posts: 22
Member Since:
2014 年 03 月 01 日
Offline

So I tried the uart4.exe to run before ctty com4 in my autoexec.bat but with no luck.
I looked inside of the uart4.exe and it seems to depend on cwsdpmi.exe file. so do you have that? is it needed?
can you please send me your working image?
thank you!

2014 年 03 月 24 日
14:30:12
tim
New Member
Forum Posts: 4
Member Since:
2014 年 03 月 24 日
Offline

I used this image:
http://www.roboard.com/temp/86.....indows.zip

Then added the following lines to the autoexec.bat file right before the LFN driver line:

uart4
mode com4:9600,N,8,1,P
ctty com4

2014 年 03 月 24 日
14:45:59
tim
New Member
Forum Posts: 4
Member Since:
2014 年 03 月 24 日
Offline

Also, remember to use a null modem cable (laplink) if you are connecting to a PC. It has the appropriate wires crossed over.

2014 年 03 月 24 日
15:11:22
asian55
Moderator
Forum Posts: 22
Member Since:
2014 年 03 月 01 日
Offline

Thank you Tim for your link and info. Still didn't work for me :(
I am so frustrated that it took me a whole week while looking at the hyper terminal window hoping to get just ONE character with NO luck!

Below is my autoexec.bat, and I also have the cross over cable connected between my PC and the Educake (txrx, rxtx). I placed then uart4.exe into the root of my device and I verified that the command.com is being executed since when I place a simple command in the beginning of the autoexec.bat it gets executed and create the desired file as a prove (my command is dir > results.txt) . So Please help me!! Thank you

@echo off
SET DOSDIR=C:\FDOS
SET DIRCMD=/P /OGN /4
SET COPYCMD=/-Y

REM SET NLSPATH=%dosdir%\NLS
REM SET HELPPATH=%dosdir%\HELP
SET TEMP=Z:\
SET TMP=%TEMP%

SET PATH=%dosdir%\BIN

uart4
mode com4:9600,N,8,1,P
ctty com4

LH DOSLFN

C:\NET\NETBIND.COM
C:\FDOS\BIN\RDISK.COM /S2 /:Z

2014 年 03 月 24 日
15:30:07
acen2008
New Member
Forum Posts: 2
Member Since:
2014 年 03 月 24 日
Offline

If you restored the older version of 86duino.img (ex. 20140218) on windows OS, the SD card should not work on EduCake. Because the image file has some problems.
Download the lastest version of 86duino.img (now, it is 20140303 version) from "86Duino SysImage Installation"

http://www.86duino.com/index.php?p=3203

(follow the setps to make a sysimage SD card)

Then, insert SD card to EduCake and use the SysImage tool to update 86Duino system (choose "Updating 86Duino firmware" option in the tutorial http://www.86duino.com/index.php?p=3245).

Then, plug SD card to PC, it need some steps to enable console:

Step1: edit autoexec.bat, comment the last line "_v86boot"
change "_v86boot" to "REM _v86boot"

Step2: add 2 lines bellow "REM _v86boot" line
"REM _v86boot" <= comment line
"MODE com4 BAUDHARD=1152" <= add
"ctty com4" <= add

Step3: unplug the SD reader form PC and insert it on EduCake
Step4: connect PC and EduCake with RS232-to-USB wire
Setp5: open putty.exe or other terminal program with 115200 baudrate on PC
Step6: power on EduCkae

I follow above steps and console work fine on EduCake, hope to help you.

my autoexec.bat:
@echo off
SET DOSDIR=C:\FDOS
SET DIRCMD=/P /OGN /4
SET COPYCMD=/-Y

REM SET NLSPATH=%dosdir%\NLS
REM SET HELPPATH=%dosdir%\HELP
SET TEMP=Z:\
SET TMP=%TEMP%

SET PATH=%dosdir%\BIN

LH DOSLFN

C:\NET\NETBIND.COM
C:\FDOS\BIN\RDISK.COM /S2 /:Z
REM _v86boot
MODE com4 BAUDHARD=1152
ctty com4

2014 年 03 月 24 日
16:26:17
tim
New Member
Forum Posts: 4
Member Since:
2014 年 03 月 24 日
Offline
10

acen2008 said

If you restored the older version of 86duino.img (ex. 20140218) on windows OS, the SD card should not work on EduCake. Because the image file has some problems.
Download the lastest version of 86duino.img (now, it is 20140303 version) from "86Duino SysImage Installation"

Before I got my com port running I did this, but I did not realise that I upgraded anything. I don't think any version number even changed...hopeless.

2014 年 03 月 24 日
17:42:13
acen2008
New Member
Forum Posts: 2
Member Since:
2014 年 03 月 24 日
Offline

A month ago, i tried this image file (http://www.roboard.com/temp/86.....indows.zip) on the 86Duino ONE,
the freedos didn't boot at that time and got a boot error message via VGA card. On the other words, i didn't execute any program or command in the freedos. So i think maybe the console function didn't work on EduCake due to this image.
Now, the image file has updated (http://www.roboard.com/temp/86.....indows.zip), i download and restore it again and sure that the freedos works fine on my 86Duino ONE and EduCake.

Forum Timezone: Asia/Taipei

Most Users Ever Online: 66

Currently Online:
3 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Dinosaur: 27

leutenecker: 13

mrZagg: 10

Ekkehard: 8

lukeross: 8

hippy: 8

smeezekitty: 8

UIdahoCIT: 8

tomka: 8

zealot02: 7

Member Stats:

Guest Posters: 0

Members: 1543

Moderators: 14

Admins: 5

Forum Stats:

Groups: 2

Forums: 10

Topics: 241

Posts: 1087

Newest Members: Stevo99, Daveydave, nhollywoodmarli, bat869cube672, lenggeleranto, iknowesp, dimka, elihu, Woodrowcercraby, Robertnalty

Moderators: Glaux: 70, uaa: 11, guigra: 17, asian55: 22, Android_Lin: 213, bcarroll: 12, cucubutter: 84, recycled-air: 12, stevemork: 16, zerozaber: 52, pongraczi: 20, George Andrews III: 56, poto: 11, garpastym: 20

Administrators: eveshih: 1, anthony: 31, viky6: 0, roboard: 135, hcl: 0