From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bwvS9-0003xV-A6 for barebox@lists.infradead.org; Wed, 19 Oct 2016 18:19:08 +0000 Received: by mail-lf0-x236.google.com with SMTP id b81so36828524lfe.1 for ; Wed, 19 Oct 2016 11:18:40 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <201610190953.41081.jbe@pengutronix.de> From: Javier Fileiv Date: Wed, 19 Oct 2016 20:18:38 +0200 Message-ID: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: Loading kernel issues To: Juergen Borleis Cc: barebox@lists.infradead.org just in case...my /env/config as well mini2440:/ cat /env/config #!/bin/sh machine=mini2440 user= # use 'dhcp' to do dhcp in barebox and in kernel # use 'none' if you want to skip kernel ip autoconfiguration ip=dhcp # or set your networking parameters here #eth0.ipaddr=a.b.c.d #eth0.netmask=a.b.c.d #eth0.gateway=a.b.c.d eth0.serverip=192.168.0.10 #eth0.ethaddr=a:b:b:d:e:f # autoboot settings # can be either 'tftp', 'nfs', 'nand' or 'mmc' kernel_loc=nand # can be either 'net', 'nand', 'initrd' or 'mmc' rootfs_loc=nand # can be either 'jffs2' or 'ubifs' for flash or 'ext3' for mmc rootfs_type=jffs2 rootfsimage=root-${machine}.${rootfs_type} # The image type of the kernel. Can be uimage, zimage, raw, or raw_lzo #kernelimage_type=zimage #kernelimage=zImage-${machine} kernelimage_type=uimage kernelimage=uImage-$machine #kernelimage_type=raw #kernelimage=Image-$machine #kernelimage_type=raw_lzo #kernelimage=Image-$machine.lzo # the name of the barebox image used by the update script bareboximage=barebox-$machine # the name of the barebox default environment used by the update script bareboxenvimage=barebox-environment-$machine if [ -n $user ]; then kernelimage="${user}"-"${kernelimage}" nfsroot="${eth0.serverip}:/home/${user}/nfsroot/${machine}" rootfsimage="${user}"-"${rootfsimage}" else nfsroot="/path/to/nfs/root" fi autoboot_timeout=3 if [ -e /dev/nor0 ]; then nor_parts="512k(barebox)" # Skip autoboot if not booting from NAND autoboot_disable=1 fi # # "mini2440" kernel parameter # 0 .. 9 = screen type # b = backlight enabled # t = touch enabled # c = camera enabled # Note: can be "mini2440= " if nothing of these components are connected # bootargs="console=ttySAC0,115200 mini2440=0tbc rootdelay=5" # NAND boot settings # Device name used by the kernel nand_device="nand" # partition definition in the NAND nand_parts="512k(barebox),384k(bareboxenv),2048k(kernel),-(root)" # rootfs's partition number in the NAND rootfs_mtdblock_nand=3 # used when manually booting with "boot nand" command rootfs_mtdblock_type=jffs2 # MMC/SD boot settings # partition number to read the kernel from # (starting with # 0, Barebox's counting scheme) kernel_mmc_part=0 # rootfs's partition number # (starting with # 1, Kernel's counting scheme) rootfs_mmc_part=2 # used when manually booting with "boot mmc" command rootfs_mmc_type=ext2 2016-10-19 20:17 GMT+02:00 Javier Fileiv : > Hello Juergen, > > Here is my power up output, thanks you very much > > Terminal ready > > > barebox 2011.05.0-ptx-2014.11.0 (Oct 13 2016 - 21:53:08) > > Board: Mini 2440 > NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V 8-bit) > Bad block table found at page 524224, version 0x01 > Bad block table found at page 524160, version 0x01 > nand_read_bbt: Bad block at 0x255a0000 > dm9000 i/o: 0x20000300, id: 0x90000a46 > eth@eth0: got MAC address from EEPROM: 00:00:00:00:00:00 > cfi_probe: cfi_flash base: 0x00000000 size: 0x00200000 > ## Unknown FLASH on Bank at 0x00000000 - Size = 0x00000000 = 0 MB > refclk: 12000 kHz > mpll: 405000 kHz > upll: 48000 kHz > fclk: 405000 kHz > hclk: 101250 kHz > pclk: 50625 kHz > SDRAM1: CL2@101MHz > Malloc space: 0x33a00000 -> 0x33e00000 (size 4 MB) > Stack space : 0x339f8000 -> 0x33a00000 (size 32 kB) > running /env/bin/init... > > 2016-10-19 9:53 GMT+02:00 Juergen Borleis : >> Hi Javier, >> >> On Tuesday 18 October 2016 18:56:03 Javier Fileiv wrote: >>> Trying to autoboot from nand, I set my /env/config file like that (and >>> after that a "saveenv"). Although it doesn't work automaGically! :) >> >> Can you also send the output of barebox from power on up to the point it falls >> into the prompt? >> >> Cheers, >> Juergen >> >> -- >> Pengutronix e.K. | Juergen Borleis | >> Industrial Linux Solutions | http://www.pengutronix.de/ | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox