none
BIOSLOADER: CESYS.EXE for Win32 RRS feed

  • Question

  • I encountered that Cesys.exe for Win32 doesn't support "-b" parameter as opposed to its DOS version. Unfortunately, pre-build bootsector files for Biosloader have different sizes and isn't equal to 512 byte. I merged bootsector header and prebuild bootsector, and got 512 file size. But, Cesys fails again - it report about "Incorrectly formatted bootstrap code". What is wrong???

    p.s. wince6, wince7 cesys revision has being the same

    Wednesday, July 13, 2011 4:25 PM

Answers

All replies

  • Indeed, only fat16 bootsector ("bootstrap code" file = 450b) is supported by Cesys Win32... Useless utility :(
    Thursday, July 14, 2011 8:19 AM
  • The source of CESYS is under platform\CEPC\src\bootloader\biosloader\utilities\cesys\nt\main.cxx, you could make some change to adapt your need.
    For CE7, there is a new CESYS platform\CEPC\src\boot\tools\bin\i386\cesys.exe that support FAT32 but it only works with the new boot loader framework.(platform\CEPC\src\boot\bldr\)

    Wednesday, July 20, 2011 11:36 PM
  •   Thank you KMOS,

    but how did you manage to retrieve "\CESYS\NT" folder files? I'm seeing only \DOS folder.

    Thursday, July 21, 2011 8:21 AM
  • I do not have the "\CESYS\NT" either on the official release: I'm quite sure I saw it in a previous release, I do not know if it was the RC/CTP. KMOS maybe it is the case?
    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com
    Thursday, July 21, 2011 9:51 AM
  • You are right, it is gone.
    Perhaps you can try other bootsector installer, such as http://www.nu2.nu/mkbt/
    Thursday, July 21, 2011 6:32 PM
  • Hi KMOS,

      I'm familiar with MKBT, unfortunately it works with entire boot sector only (512 B), also it can't mark partition as an active.

    So, working with MKBT expands to few steps:

    1. Read current partition bootsector (by MKBT);

    2. Cut it first N-bytes  (BTW, there isn't dedicated Dos/Win32 command like Linux "DD");

    3. Merge it with binary bootsector file;

    4. Write it to partition;

    5. Make partition active (should use 3rd party utility).

     

    All these steps could be produced by CESYS, but it is afford to write FAT16 bootsector only

    Friday, July 22, 2011 8:07 AM
  • You do not need a 3rd party utility to activate the partition, you can use the DOS debug program:

     

    rip 100
    res 8000
    rbx 0
    a 100
    mov ax,201
    mov cx,1
    mov dx, 81
    int 13
    
    g 10b
    e 8000:1be 80
    a 100
    mov ax, 301
    
    rip 100
    g 10b
    q
    

     

    The script reads the Master Boot Record of the second hard disk (unit 0x81) using BIOS INT 13h service, modifies the parition table to activate the first partition (simply writing 0x80) then writes back the sector. Obviously you have to run the debug program after you have created the partiton with fdisk.  

     


    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com
    Friday, July 22, 2011 8:11 AM
  • You can use DiskPart.exe utility in Windows to mark a MBR partition as active, more info please refer to http://msdn.microsoft.com/en-us/library/cc770877(WS.10).aspx
    Also there is a CE version of DiskPart, allows you to create, set active a partition and prepare the boot sector as well, http://msdn.microsoft.com/en-us/library/ee478369(WinEmbedded.60).aspx
    • Marked as answer by iShust Tuesday, July 26, 2011 11:10 AM
    Sunday, July 24, 2011 8:01 AM
  • Also there is a CE version of DiskPart, allows you to create, set active a partition and prepare the boot sector as well, http://msdn.microsoft.com/en-us/library/ee478369(WinEmbedded.60).aspx
    Thanks for useful link, I will try it.
    Monday, July 25, 2011 9:12 AM
  • You do not need a 3rd party utility to activate the partition, you can use the DOS debug program:


    Luca, thanks you too. But mentioned way is too sophisticate to provide it as an end user solution.
    Monday, July 25, 2011 9:15 AM