Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
ANN: USBboot
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  17 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Howerd  
View profile  
 More options Oct 11 2012, 1:37 pm
Newsgroups: comp.lang.forth
From: Howerd <howe...@yahoo.co.uk>
Date: Thu, 11 Oct 2012 10:37:40 -0700 (PDT)
Local: Thurs, Oct 11 2012 1:37 pm
Subject: ANN: USBboot
Hi All,

I have just released USBboot, as selection of three files to make a SUB drive bootable :

http://www.inventio.co.uk/USBboot.htm

USBboot.exe is written in the SwiftForth dialect of Forth.
FAT32ldr.bin and kernel.bin are writen in NASM.

USBboot is designed to allow colorForth or another operating system to be run from a USB drive. The colorForth port will be done ASAP...

Feedback welcome,

Enjoy!
Howerd


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Howerd  
View profile  
 More options Oct 11 2012, 2:54 pm
Newsgroups: comp.lang.forth
From: Howerd <howe...@yahoo.co.uk>
Date: Thu, 11 Oct 2012 11:54:12 -0700 (PDT)
Local: Thurs, Oct 11 2012 2:54 pm
Subject: Re: ANN: USBboot

I have just released USBboot, a selection of three files to make a USB drive bootable :

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Wills  
View profile  
 More options Oct 12 2012, 9:02 am
Newsgroups: comp.lang.forth
From: Mark Wills <forthfr...@gmail.com>
Date: Fri, 12 Oct 2012 06:02:56 -0700 (PDT)
Local: Fri, Oct 12 2012 9:02 am
Subject: Re: ANN: USBboot
On Oct 11, 7:54 pm, Howerd <howe...@yahoo.co.uk> wrote:

This is excellent! Thank you for sharing this, Howerd! I'll give this
a try tonight!

Regards

Mark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Howerd  
View profile  
 More options Oct 13 2012, 10:59 am
Newsgroups: comp.lang.forth
From: Howerd <howe...@yahoo.co.uk>
Date: Sat, 13 Oct 2012 07:59:37 -0700 (PDT)
Local: Sat, Oct 13 2012 10:59 am
Subject: Re: ANN: USBboot

Hi Mark,

Thanks for the comment :-)

Basically USBboot is the Windows version of cfDOS. I have been surprised by how much harder it was to achieve the same thing in Windows/USB compared to DOS/Floppy - maybe 10 x harder.

Firstly you've got the never ending battle to make anything work on the latest version of Windows. With Win7 you must "Run as administrator"...

Then there is BIOS USB versus Floppy Disk hardware - somehow floppy disk hardware got integrated into the PC glue logic in the same way on almost all PCs from the 1990's onwards. USB is way to complicated to fit into one 512 byte sector, so you have to use the BIOS.

Then USB drives can be formatted in at least two ways, with or without an MBR, with varying disk parameters, and there is only reverse engineered documentation about how a BIOS deals with this, and only guesswork about what Windows does.

Then there is LBA versus CHS - a comment on OSdev.org said that all BIOS's since the 1990's support LBA, and this is true of every PC and laptop that I have access to - so thankfully CHS is gone...

Then there is how Windows decides to format a USB drive - not only FAT12,16,32 or NTFS, but whether to use an MBR or not, and whatever it decides it will certainly not be the way the USB drive manufacturer did it.

And not forgetting my favourite, FAT32. There are just enough strange offsets and bizarre calculations to make the official MS document a challenging read.

I defined USBboot as "working" when it successfully made all of my USB drives (and an SDCard in a card reader) boot. This has taken a lot of evenings and weekends sporadically over the last year or so...

If anyone finds a USB drive that does not work, press 'C' to capture the important sectors to a file and send it to me :-)

Best regards,
Howerd


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jfong  
View profile  
 More options Oct 15 2012, 6:32 am
Newsgroups: comp.lang.forth
From: jfong <jf...@ms4.hinet.net>
Date: Mon, 15 Oct 2012 03:32:20 -0700 (PDT)
Local: Mon, Oct 15 2012 6:32 am
Subject: Re: ANN: USBboot
Howerd ... wrote:

> I have just released USBboot, as selection of three files to make a SUB drive bootable :
> .....
> USBboot.exe is written in the SwiftForth dialect of Forth.

    What SwiftForth version you use? I had try to include USBboot.f under
version 3.2.5 but failed when encounter the word (u.r).

Jach


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Howerd  
View profile  
 More options Oct 15 2012, 12:29 pm
Newsgroups: comp.lang.forth
From: Howerd <howe...@yahoo.co.uk>
Date: Mon, 15 Oct 2012 09:29:00 -0700 (PDT)
Subject: Re: ANN: USBboot
On Oct 15, 12:32 pm, jfong <jf...@ms4.hinet.net> wrote:

> Howerd ... wrote:

> > I have just released USBboot, a selection of three files to make a USB drive bootable :
> > .....
> > USBboot.exe is written in the SwiftForth dialect of Forth.

>     What SwiftForth version you use? I had try to include USBboot.f under
> version 3.2.5 but failed when encounter the word (u.r).

> Jach

Hi Jach,

I have SwiftForth version 3.4.1 14-Sep-2011 .

Here is the code for (u.r) :

: (U.R) ( u n -- addr len )
   >R 0 (D.) R@ OVER - 0 MAX 0 ?DO BL HOLD LOOP #> R> MIN ;

Best regards,
Howerd


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jfong  
View profile  
 More options Oct 15 2012, 10:23 pm
Newsgroups: comp.lang.forth
From: jfong <jf...@ms4.hinet.net>
Date: Mon, 15 Oct 2012 19:23:13 -0700 (PDT)
Local: Mon, Oct 15 2012 10:23 pm
Subject: Re: ANN: USBboot
Hower wrote:

> Here is the code for (u.r) :
> : (U.R) ( u n -- addr len )

>    >R 0 (D.) R@ OVER - 0 MAX 0 ?DO BL HOLD LOOP #> R> MIN ;

    Thanks. It works now.

    One another thing: the variable ptrDeviceNotificationHandle always has
its value stop at 32, even quit the program immediately without an USB
drive plug in. The way of handling its balance seems a little strange to me:-)

Best Regards,
Jach


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Howerd  
View profile  
 More options Oct 16 2012, 1:48 am
Newsgroups: comp.lang.forth
From: Howerd <howe...@yahoo.co.uk>
Date: Mon, 15 Oct 2012 22:48:08 -0700 (PDT)
Local: Tues, Oct 16 2012 1:48 am
Subject: Re: ANN: USBboot
On Oct 16, 4:23 am, jfong <jf...@ms4.hinet.net> wrote:

> Hower wrote:

> > Here is the code for (u.r) :
> > : (U.R) ( u n -- addr len )

> >    >R 0 (D.) R@ OVER - 0 MAX 0 ?DO BL HOLD LOOP #> R> MIN ;

>     Thanks. It works now.

>     One another thing: the variable ptrDeviceNotificationHandle always has
> its value stop at 32, even quit the program immediately without an USB
> drive plug in. The way of handling its balance seems a little strange to me:-)

> Best Regards,
> Jach

Hi Jach,

ptrDeviceNotificationHandle is just a pointer into the array of device
notifications, and I limit it to between 0 and 31 so that I cannot
overflow the array.

Yes, if you request more than 32 different device notifications its
behaviour would be very strange ;-)
But I warn you if this happens. I always like to protect arrays in
this way.

Best regards,
Howerd


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jfong  
View profile  
 More options Oct 16 2012, 3:20 am
Newsgroups: comp.lang.forth
From: jfong <jf...@ms4.hinet.net>
Date: Tue, 16 Oct 2012 00:20:26 -0700 (PDT)
Local: Tues, Oct 16 2012 3:20 am
Subject: Re: ANN: USBboot
Howerd wrote:

> ptrDeviceNotificationHandle is just a pointer into the array of device
> notifications, and I limit it to between 0 and 31 so that I cannot
> overflow the array.

    I saw this variable increments in both the words "Unregist...Notification"
and "Regist...Notification", but only decrements once in the word
"InitRegist...Notifications". It logically confuse me.

    By the way, the word "ShowBPB" didn't clean its stack input. Although
no harm, but seems is unexpected.

Best Regards,
Jach


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Howerd  
View profile  
 More options Oct 16 2012, 1:51 pm
Newsgroups: comp.lang.forth
From: Howerd <howe...@yahoo.co.uk>
Date: Tue, 16 Oct 2012 10:51:44 -0700 (PDT)
Local: Tues, Oct 16 2012 1:51 pm
Subject: Re: ANN: USBboot
On Oct 16, 9:20 am, jfong <jf...@ms4.hinet.net> wrote:

> Howerd wrote:

> > ptrDeviceNotificationHandle is just a pointer into the array of device
> > notifications, and I limit it to between 0 and 31 so that I cannot
> > overflow the array.

>     I saw this variable increments in both the words "Unregist...Notification"
> and "Regist...Notification", but only decrements once in the word
> "InitRegist...Notifications". It logically confuse me.

>     By the way, the word "ShowBPB" didn't clean its stack input. Although
> no harm, but seems is unexpected.

> Best Regards,
> Jach

Hi Jach,

Yes, there is a missing drop after the  r>  :

: ShowBPB ( a -- )
   dup >r
   cr NORMAL. ."  "
   INVERSE.  ." 2. BIOS Parameter Block - BPB "  NORMAL.  ."   at
Sector "  decimal  BPBsectorNumber @ dup LastSector !
dup .Both  .SpecialSector
   (ShowBPB)
   r>  drop
   cr  ShowBPB_MD5s
   cr
   ShowBPBCalculations
;

Actually  ShowBPB_MD5s  should be cleaned up a bit, then some words
would be simpler.

Thanks for ponting this out,

Best regards,
Howerd


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jfong  
View profile  
 More options Oct 17 2012, 3:25 am
Newsgroups: comp.lang.forth
From: jfong <jf...@ms4.hinet.net>
Date: Wed, 17 Oct 2012 00:25:42 -0700 (PDT)
Local: Wed, Oct 17 2012 3:25 am
Subject: Re: ANN: USBboot
Hi!

    The word "BPB_BytsPerSec" in definition "InitDataBuffer" should be
"@BPB_BytsPerSec"?

Jach


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Howerd  
View profile  
 More options Oct 17 2012, 1:08 pm
Newsgroups: comp.lang.forth
From: Howerd <howe...@yahoo.co.uk>
Date: Wed, 17 Oct 2012 10:08:36 -0700 (PDT)
Local: Wed, Oct 17 2012 1:08 pm
Subject: Re: ANN: USBboot
On Oct 17, 9:25 am, jfong <jf...@ms4.hinet.net> wrote:

> Hi!

>     The word "BPB_BytsPerSec" in definition "InitDataBuffer" should be
> "@BPB_BytsPerSec"?

> Jach

Hi Jach,

Yes, you are right again...

I have updated USBboot to V1.1 2012 Oct 17 available from the same
location :

http://www.inventio.co.uk/USBboot.htm

Thanks for pointing these errors out :-)

Best regards,
Howerd


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Coos Haak  
View profile  
 More options Oct 17 2012, 5:01 pm
Newsgroups: comp.lang.forth
From: Coos Haak <chfo...@hccnet.nl>
Date: Wed, 17 Oct 2012 22:59:53 +0200
Local: Wed, Oct 17 2012 4:59 pm
Subject: Re: ANN: USBboot
Op Mon, 15 Oct 2012 09:29:00 -0700 (PDT) schreef Howerd:

What is the last MIN for? It truncates '12345 3 U.R' to '123'
Maybe useful for tables, but no Forth with .R words I know does this, all
will print '12345'

--
Coos

CHForth, 16 bit DOS applications
http://home.hccnet.nl/j.j.haak/forth.html


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Elizabeth D. Rather  
View profile  
 More options Oct 17 2012, 5:59 pm
Newsgroups: comp.lang.forth
From: "Elizabeth D. Rather" <erat...@forth.com>
Date: Wed, 17 Oct 2012 11:59:41 -1000
Local: Wed, Oct 17 2012 5:59 pm
Subject: Re: ANN: USBboot
On 10/17/12 10:59 AM, Coos Haak wrote:

You have specified that it is supposed to fit in a field 3 spaces wide.
If it won't fit, do you want the most significant digits or a messed-up
table? If you want all the digits, leave out the MIN. Easy to do.

Cheers,
Elizabeth

--
==================================================
Elizabeth D. Rather   (US & Canada)   800-55-FORTH
FORTH Inc.                         +1 310.999.6784
5959 West Century Blvd. Suite 700
Los Angeles, CA 90045
http://www.forth.com

"Forth-based products and Services for real-time
applications since 1973."
==================================================


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jfong  
View profile  
 More options Oct 20 2012, 10:25 pm
Newsgroups: comp.lang.forth
From: jfong <jf...@ms4.hinet.net>
Date: Sat, 20 Oct 2012 19:25:26 -0700 (PDT)
Local: Sat, Oct 20 2012 10:25 pm
Subject: Re: ANN: USBboot
Howerd wrote:

> I have updated USBboot to V1.1 2012 Oct 17 available from the same
> location :

    The returned length of "READ-FILE" in definition "ReadBootFile" has not
be dropped?

    The behavior after "READ-FILE" in definition "pdump" is a little strange.

Best Regards,
Jach


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Howerd  
View profile  
 More options Oct 21 2012, 10:18 am
Newsgroups: comp.lang.forth
From: Howerd <howe...@yahoo.co.uk>
Date: Sun, 21 Oct 2012 07:18:58 -0700 (PDT)
Local: Sun, Oct 21 2012 10:18 am
Subject: Re: ANN: USBboot

Hi Jach,

Yes - another bug, corrected in USBboot 2012 Oct 21 V1.2 :-)
www.inventio.co.uk/USBboot.htm

Thanks!

Best regards,
Howerd


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Howerd  
View profile  
 More options Oct 21 2012, 10:27 am
Newsgroups: comp.lang.forth
From: Howerd <howe...@yahoo.co.uk>
Date: Sun, 21 Oct 2012 07:27:42 -0700 (PDT)
Local: Sun, Oct 21 2012 10:27 am
Subject: Re: ANN: USBboot

Hi All,

I have just updated USBboot to V1.2 2012 Oct 21 :

www.inventio.co.uk/USBboot.htm

I have added the option to copy the file KERNEL.IMG to the USB drive - finding the drive letter from an inserted USB drive is unreasonably difficult, for reasons that are explained by Microsoft, but that I don't really understand.
This functionality may fail if you choose to insert two USB drives while running USBboot.exe, and Windows decides to allocate the drive letter in reverse numerical order. If this happens, the file KERNEL.IMG will get copied to the wrong drive, so please, just one USB drive at a time :-)

I have also included cf2012,the colorForth NASM sources which I hope will one day be adapted to boot from a FAT32 USB drive, either by me or someone else with more free time...

If any one has a PC BIOS based Forth running in Real Mode from segment:address 0x1000:0x0000, or can make one, please let me know. This can then be the first Forth to be run by the FAT32 boot loader.

I have to leave the strange world of Windows USB and BIOS bootloaders and return to the real world - alas I may not have a lot of free time for a while...

Enjoy!

Best regards,
Howerd


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »