Booting from DiskOnChip
Dmitry Skorinko
skorinkod at mail.ru
Fri Dec 3 04:42:12 EST 2004
People!
Help me to install grub to DiskOnChip, plz...
Just for BIOS see it... Then I will install system self
This problem stops all my work :(
> I patch and build grub-0.92, then:
>
> # ./doc_loadbios /dev/mtd0 ./grub_firmware
> Performing Flash Erase of length 16384 at offset 0
> ioctl(MEMERASE): Input/output error
> # dmesg | tail -8
> MTD_open
> MTD_ioctl
> MTD_ioctl
> nand_erase: start = 0x00000000, len = 16384
> nand_isbad_bbt(): bbt info for offs 0x00000000: (block 2) 0x00
> nand_erase: attempt to erase a bad block at page 0x00000000
> MTD_close
> nand_sync: called
if I use M-System tools:
# ./dformat -win:e000 -s:./DOC514.EXB -first -bdkf0:./grub_firmware -y
DFORMAT Version 5.1.4.37 for Linux
Copyright (C) M-Systems, 1992-2002
DiskOnChip 2000 TSOP found in 0xe0000.
256M media, 16K unit
Formatting 16384
===========================
Mounting Disk Partition 0
Unit 16368 out of 16368
Writing boot image 197728
Writing file to BDK 0 98304
OK
Please reboot to let DiskOnChip install itself.
#reboot
BIOS:
searching for boot sector on SCSI... not found
I can dformat flash with DOS:
# ./dformat -win:e000 -s:./DOC514.EXB -first
then from floppy
SYS A: C:
and MS-DOS can boot from flash... => Problem is not in hardware.
Thanks
Dmitry
More information about the linux-mtd
mailing list