From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20448 invoked by alias); 16 Aug 2004 08:33:43 -0000 Mailing-List: contact ecos-cvs-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Post: List-Help: , Sender: ecos-cvs-owner@sources.redhat.com List-Subscribe: Received: (qmail 20435 invoked by uid 9341); 16 Aug 2004 08:33:42 -0000 Date: Mon, 16 Aug 2004 08:33:00 -0000 Message-ID: <20040816083342.20433.qmail@sourceware.org> From: asl@sourceware.org To: ecos-cvs@ecos.sourceware.org Subject: ecos/packages/io/flash/current ChangeLog src/f ... X-SW-Source: 2004/txt/msg00378.txt.bz2 List-Id: CVSROOT: /cvs/ecos Module name: ecos Branch: flash_v2 Changes by: asl@sourceware.org 2004-08-16 08:33:42 Modified files: packages/io/flash/current: ChangeLog packages/io/flash/current/src: flash.c flashiodev.c Log message: * src/flash.c: Make the flock lock/unlock code compile without warnings. * src/flashiodev.c (flashiodev_lookup): Only initialize the device if we have not already been initialized via cyg_set_config(). This stopped redboots mount -f working. * src/flashiodev.c (flashiodev_lookup): Moved most of the flashiodev_init into this new function. This fixed the ordering issue with redboot startup. When doing a FIS name lookup in flashiodev_init, redboot was not yet nitialised so lookup failed. Moving this into flashiodev_lookup solves this problem. Its now possible for redboot to mount the jffs2 filesystem with -d /dev/flash1.