Announcement

Collapse
No announcement yet.

Boot-able USB drive & serial output

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Boot-able USB drive & serial output

    Hi,

    I need to do a Boot-able USB drive with serial output enabled.
    This what i did:
    * I had Enabled serial output from config.h
    Code:
    #define SERIAL_CONSOLE_DEFAULT 1
    * then recompiled memtest
    Code:
    $ make clean
    [I][...][/I]
    
    $ make
    [I][...][/I]
    * after that, I had tried to create a boot-able USB drive:
    * I had edited Makefile then changed FDISK=/dev/fd0 to FDISK=/dev/sdb
    * Then created the boot-able USB drive
    Code:
    $ make install
    dd <memtest.bin >/dev/sdb bs=8192
    20+1 enregistrements lus
    20+1 enregistrements écrits
    164504 octets (165 kB) copiés, 0,0160675 s, 10,2 MB/s


    I'm missing something, because after booting on my CPU board, I only get a series of "8000" into my serial port.

    any ideas ?
    thanks

  • #2
    Are the serial parameters set correctly? In config.h, there are 2 defines that set the default parameters:

    Code:
    /* SERIAL_TTY - The default serial port to use. 0=ttyS0, 1=ttyS1 */ 
    #define SERIAL_TTY 0
    
    
    /* SERIAL_BAUD_RATE - Baud rate for the serial console */
    #define SERIAL_BAUD_RATE 9600

    Comment


    • #3
      Hi,

      Yes there are correct.


      Thanks,

      Comment


      • #4
        Do you have a screen attached to your system? If so, you can verify whether or not MemTest86 is running correctly. Even with serial port output active, you should still get screen output.

        How do you have your system configured at the moment?

        Comment


        • #5
          Hi,

          memtest is running, when I had created the boot-able USB drive from the windows or linux "boot-able USB Drive" tool. ( see Attached files )

          But is not working when I try to do my own USB drive from source code ( see Attached files in the following post )
          Attached Files

          Comment


          • #6
            Attached files when it is not working
            Attached Files

            Comment


            • #7
              The makefile that is included in the source was really meant for creating CD and floppy disk images, so I'm guessing the bootloader doesn't support USB booting. The '8000' that you see on the screen indicates floppy disk read errors. We actually use a different bootloader in our images. Have you tried creating a boot CD instead?

              Comment


              • #8
                Hi keith,

                Unfortunatly a boot CD is useless in my case.
                Because I would like to test a custom design:

                Click image for larger version

Name:	K4.jpg
Views:	1
Size:	39.8 KB
ID:	34849


                For now, the linux kenel is in development ( so I could not install grub and memtest yet ),.. And i only have the serial port and two USB port available.
                This is why i try to do a boot-able USB drive with serial port enabled.

                ( graphical interface is only avaible with a devboard )

                Do you know how i can have the right makefile ? or if anyone can generate a boot-able USB image with port enabled ?

                thank you for your time,

                Comment


                • #9
                  Give this image a try:

                  http://www.passmark.com/ftp/memtest8...serial.img.zip

                  There is an additional boot menu option for serial console output.

                  Comment


                  • #10
                    Hi,

                    It works perfectly:
                    Click image for larger version

Name:	Capture.jpg
Views:	1
Size:	64.3 KB
ID:	34851

                    thank you.

                    Comment

                    Working...
                    X