From owner-freebsd-embedded@FreeBSD.ORG Wed May 6 07:35:53 2009 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C1B4106566B for ; Wed, 6 May 2009 07:35:53 +0000 (UTC) (envelope-from jsimpson.za@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 0AF2D8FC32 for ; Wed, 6 May 2009 07:35:52 +0000 (UTC) (envelope-from jsimpson.za@gmail.com) Received: by bwz9 with SMTP id 9so5065350bwz.43 for ; Wed, 06 May 2009 00:35:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=mwpOQ365mXgBblFHgL6MuR1Eciq4AO178DTdSk6tjj8=; b=dUiA+vY4MjIFHRT6M36954HGj6zlJFl0b2NNnXvujEdo63a9PXx/NfeGnIiyoc9NBe 21tsD9nRI6eJIyMKMaCykC+nHZOi3QDbK9Mr2nNPlYmldRhpN4MJ+R9KP7HPtxpxXcz6 ispE7j8joBLf2UMQD4mpYv/gDjMmxPbH450Bs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=Qvu3GGc97T+gW3tviZbyRS3+XdOQ5x/sNSFQsAUOgsRIg1iQ0EAsuPOSWNcwkjJYs6 UtU1GAggdJ8NguwWKT9akVY6D/q50SH8tsgDGbVsUBAwj4lXpM1WedDw9VHfNZNLDU88 hpM/E8CVyzWQsEgTwEkCaJMjiraakTv+UPoSg= MIME-Version: 1.0 Received: by 10.204.71.15 with SMTP id f15mr622578bkj.113.1241593421966; Wed, 06 May 2009 00:03:41 -0700 (PDT) Date: Wed, 6 May 2009 09:03:41 +0200 Message-ID: <9e6237170905060003n673711bdp2e36c3b55ead3b7f@mail.gmail.com> From: Johan Simpson To: freebsd-embedded@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: FreeBSD 7.1 AMD Geode LX 800 / Compact Flash boot issues X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 May 2009 07:35:53 -0000 Hi all, im having some problems with getting FreeBSD to work on a new embedded Geode based motherboard. This is the board im using: http://files.ieiworld.com/files/news/080325/NOVA-LX_homepage.html To sum up what ive tried.. 1. When i boot the freebsd 7.1 dvd normally, sysinstall hangs at probing devices. 2. I managed to get a minimal install on the compact flash, by disabling ACPI on the dvd's boot menu. 3. Now i have FreeBSD 7.1 successfully installed on the CF card. Here is where the problems start :( It locks up right before/after the loader loads loader.conf. Ive put some printf calls in the loader to see where exactly the system hangs. In src/sys/boot/common/interp.c,v 1.29.28.1 2008/11/25 02:59:29 kensmith Exp $ ive found a problem in interact() ------------------------------------------------------------------------------- #ifdef BOOT_FORTH bf_init(); #endif printf("Reached interact1\n"); /*PUT IN BY ME */ /* * Read our default configuration */ if(include("/boot/loader.rc")!=CMD_OK) include("/boot/boot.conf"); printf("\n"); /* * Before interacting, we might want to autoboot. */ printf("Reached interact2\n"); /*PUT IN BY ME */ autoboot_maybe(); ----------------------------------------------------------------------------- It never gets to print "Reached interact2". So ive put in some printf's into include() which look like this: ----------------------------------------------------------- printf("Including config file\n"); if (((fd = open(filename, O_RDONLY)) == -1)) { sprintf(command_errbuf,"can't open '%s': %s\n", filename, strerror(errno)); return(CMD_ERROR); } printf("Config file is open: %s\n", filename); /* * Read the script into memory. */ script = se = NULL; line = 0; while (fgetstr(input, sizeof(input), fd) >= 0) { printf("Reading.. %s\n", input); ------------------------------------------------------------ It seems that include() is called 3 times. After which it hangs. So ive decided to print out the lines its reading from the config files. Turns out that its not reading the config files, but garbage data. What can i do to fix this problem, and is this a filesystem / CF problem? Im willing to fix up the problem, but need some advice from the experts before i go look for the problem in the wrong places. Thank you for your time Johan Simpson