* Booting from DiskOnChip
@ 2000-03-24 17:39 David Woodhouse
0 siblings, 0 replies; 5+ messages in thread
From: David Woodhouse @ 2000-03-24 17:39 UTC (permalink / raw)
To: mtd
We're getting there, slowly....
GRUB version 0.5.94 (639K lower / 130048K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> root=(dc)
DiskOnChip 2000 found at d0000
DiskOnChip NAND chip size: 8Mb
Total of 5 chips found - total capacity 40 Mb
Scanning for NFTL Media Header
NFTL Media Header found in flash sector 96
NFTL Media Header found in flash sector 112
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 5+ messages in thread
* Booting from DiskOnChip
@ 2004-12-02 16:31 Dmitry Skorinko
2004-12-02 17:18 ` Wolfgang Denk
2004-12-03 9:42 ` Dmitry Skorinko
0 siblings, 2 replies; 5+ messages in thread
From: Dmitry Skorinko @ 2004-12-02 16:31 UTC (permalink / raw)
To: linux-mtd
Hello all.
As I understand there are two ways for booting from DiskOnChip (correct me, if
I think wrong):
1) use patched lilo from M-System site
2) use patched grub from mtd cvs
I don't know, can I use lilo-mtd for it?
-----------------------------------------------------------------------
I have:
# .dformat -win:e000 -s:./DOC514.EXB -first -nodos -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 16374 out of 16374
Writing boot image 197728
OK
Please reboot to let DiskOnChip install itself.
# modprobe diskonchip
# cat /proc/mtd
dev: size erasesize name
mtd0: 10000000 00004000 "DiskOnChip 2000 (INFTL Model)"
mtd1: 00010000 00004000 " DiskOnChip BDK partition"
mtd2: 0ffd8000 00004000 " DiskOnChip BDTL partition"
# modprobe inftl
# fdisk /dev/inftla
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF
disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): p
Disk /dev/inftla: 262 MB, 262881280 bytes
16 heads, 32 sectors/track, 1002 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Device Boot Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1002, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1002, default 1002):
Using default value 1002
Command (m for help): a
Partition number (1-4): 1
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
# mkfs.ext3 /dev/inftla1
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
64256 inodes, 256496 blocks
12824 blocks (5.00%) reserved for the super user
First data block=1
32 block groups
8192 blocks per group, 8192 fragments per group
2008 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 28 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
# mount /dev/inftla1 /mnt/diskonchip/
-----------------------------------------------------------------------
When I try 1st way:
#cat ./lilo.conf
#this config was found in maillist archive
lba32
boot=/dev/inftla
map=/mnt/diskonchip/boot/map
backup=/mnt/diskonchip/boot/boot.5D00
install=/mnt/diskonchip/boot/boot.b
prompt
timeout=100
disk=/dev/inftla
bios=0x80
sectors=32
heads=16
cylinders=1002
partition=/dev/inftla1
start=2# without this I see Fatal: Sorry, don't know how to handle
device 0x5e01
image=/mnt/diskonchip/boot/vmlinuz-2.6.8mymtd26
label=linux
append="no-hlt"
read-only
root=/dev/hda1
# ./lilo -v -C ./lilo.conf
LILO version 22.3.2, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2002 John Coffman
Released 11-Jul-2002 and compiled at 20:37:04 on Aug 22 2002.
Reading boot sector from /dev/inftla
Using MENU secondary loader
Calling map_insert_data
Boot image: /mnt/diskonchip/boot/vmlinuz-2.6.8mymtd26
Added linux *
/mnt/diskonchip/boot/boot.5D00 exists - no backup copy made.
Writing boot sector.
#reboot
and BIOS say: search boot sector... not found
try "boot=inftla1" - same
-------------------------------------------------------------------------
2nd way:
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
---------------------------------------------------------------------------
other questions:
1) Should I write M-systems firmware to flash? When I don't write it, I don't
have DiskOnChip BDK partition and all results are same. But without firmware
I can't use option -first in dformat and BIOS don't see flash at all!
2) How I can boot from DiskOnChip? :)
thanks
Dmitry
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Booting from DiskOnChip
2004-12-02 16:31 Dmitry Skorinko
@ 2004-12-02 17:18 ` Wolfgang Denk
2004-12-03 9:42 ` Dmitry Skorinko
1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2004-12-02 17:18 UTC (permalink / raw)
To: linux-mtd
In message <200412021931.05132.skorinkod@mosk.ru> you wrote:
>
> As I understand there are two ways for booting from DiskOnChip (correct me, if
> I think wrong):
This depends on your hardware and the capabilities of your boot loader.
> 1) use patched lilo from M-System site
> 2) use patched grub from mtd cvs
3) Use U-Boot from U-Boot CVS.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
As far as we know, our computer has never had an undetected error.
-- Weisert
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Booting from DiskOnChip
2004-12-02 16:31 Dmitry Skorinko
2004-12-02 17:18 ` Wolfgang Denk
@ 2004-12-03 9:42 ` Dmitry Skorinko
2004-12-03 14:37 ` Kalev Lember
1 sibling, 1 reply; 5+ messages in thread
From: Dmitry Skorinko @ 2004-12-03 9:42 UTC (permalink / raw)
To: linux-mtd
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Booting from DiskOnChip
2004-12-03 9:42 ` Dmitry Skorinko
@ 2004-12-03 14:37 ` Kalev Lember
0 siblings, 0 replies; 5+ messages in thread
From: Kalev Lember @ 2004-12-03 14:37 UTC (permalink / raw)
To: skorinkod; +Cc: linux-mtd
Dmitry Skorinko wrote:
>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 :(
>
>
Why don't you try the docboot boot loader that is included in linux-mtd cvs?
It has much less overhead and is considarably simpler to understand than
the GRUB and LILO.
I believe your Diskonchip should be supported.
--
Best regards,
Kalev Lember
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-12-03 14:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-24 17:39 Booting from DiskOnChip David Woodhouse
-- strict thread matches above, loose matches on Subject: below --
2004-12-02 16:31 Dmitry Skorinko
2004-12-02 17:18 ` Wolfgang Denk
2004-12-03 9:42 ` Dmitry Skorinko
2004-12-03 14:37 ` Kalev Lember
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox