public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Bjorn Eriksson" <mdeans@algonet.se>
To: <mtd@infradead.org>
Subject: Simplified initrd on flash/ROM.
Date: Wed, 2 Aug 2000 20:07:16 +0200	[thread overview]
Message-ID: <002801bffcac$7d84e8a0$0800a8c0@win95.inteloop.se> (raw)
In-Reply-To: <Pine.LNX.4.21.0007312215380.4864-100000@carrot.linuxgrrls.org>


 Does anyone know why I'm not allowed to call ioremap() in
i386/kernel/setup.c:setup_arch()? It fails with the message 'kmem_alloc:
NULL ptr (name=unknown)' when __ioremap() calls get_vm_area(size).

 I'm trying to instruct rd.c to read an initrd directly from my ROM which
I've mapped directly above RAM on my hardware. I've got 16MB RAM @ 0-15MB
and 1MB ROM @ 16MB. The actual code is: (BE_EMBEDDED_DEVICE is #defined)

#ifdef CONFIG_BLK_DEV_INITRD
  #if defined(BE_EMBEDDED_DEVICE)
	initrd_start = ioremap(EPROM_start+ROMDISK_start,
EPROM_size-ROMDISK_start); //remap ~ 1MB @ 16MB
	initrd_end = initrd_start+EPROM_size-ROMDISK_start;
  #else
    if (LOADER_TYPE) {
        initrd_start = INITRD_START ? INITRD_START + PAGE_OFFSET : 0;
        initrd_end = initrd_start+INITRD_SIZE;
        if (initrd_end > memory_end) {
            printk("initrd extends beyond end of memory "
                "(0x%08lx > 0x%08lx)\ndisabling initrd\n",
                initrd_end,memory_end);
            initrd_start = 0;
        }
    }
  #endif
#endif

 I'm trying to simplify my initrd set-up a bit. The old code was distinctly
trial n' error using ROM disk - rom.c (O.Xymoron's modified loop.c I've
modified to work in 2.2.x). I'd rather use simple initrd support with gzip
compression.


//Björnen.



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

  reply	other threads:[~2000-08-02 18:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-31 15:18 Booting from flash David Vrabel
2000-07-31 15:29 ` David Woodhouse
2000-07-31 15:48   ` Kira Brown
2000-07-31 18:56     ` Bjorn Eriksson
2000-07-31 21:15       ` Kira Brown
2000-08-02 18:07         ` Bjorn Eriksson [this message]
2000-08-02 21:07           ` Update: Simplified initrd on flash/ROM Bjorn Eriksson
2000-08-01  8:38   ` Booting from flash David Vrabel
2000-08-05  5:22   ` root

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='002801bffcac$7d84e8a0$0800a8c0@win95.inteloop.se' \
    --to=mdeans@algonet.se \
    --cc=mtd@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox