Date: Mon, 22 Jul 2013 12:42:06 +0200 From: Michael Tuexen <tuexen@freebsd.org> To: XiaoQI Ge <ghw@7axu.com> Cc: "freebsd-arm@freebsd.org" <arm@freebsd.org> Subject: Re: Booting Beagleboard Black Message-ID: <519DDF45-9D8E-4AA7-9140-C4B955C71CFB@freebsd.org> In-Reply-To: <CAKrd9eWkpa-XhgDAZezjjh0cpD14SA7-ABQMCC10TPEmZJYVFQ@mail.gmail.com> References: <CAB3ij4C-H5iutjPp=57BtTQFZpM1iZhz-ku0wRBnKodkt1YK-Q@mail.gmail.com> <97D78167-9428-4005-89EE-15A78F74BE46@gromit.dlib.vt.edu> <CAB3ij4DR8KJpVZCCxtHtG2QMWZGAdnjfDw5127CuwemgMY=FCA@mail.gmail.com> <44AB19F7-A0D3-4F0C-A1F4-66AA49283387@gromit.dlib.vt.edu> <CAB3ij4Bd8tPHQ8xuZF7yobog4Rs1rt3skEFRdKkVAJnjMX0Xig@mail.gmail.com> <D766D953-DE47-4936-9A3F-B548D9F450A9@kientzle.com> <CAB3ij4CuejVj4k%2BwB=coriEjmPcdcKdugEDoYPoyGtuooDLUsA@mail.gmail.com> <27AC1DB6-9D32-47AF-A1E8-A53EE3C09753@FreeBSD.org> <CAB3ij4A=0=ZzSRbzD0rkF3TnDD_yro2EMTH6Pqx0dP4RmEmE5A@mail.gmail.com> <CAA561B6-5A7A-4371-8445-4ED0A2F82B84@freebsd.org> <CAKrd9eUGZRrv4xmBsKXvwRR1YZmuwyjf5PBv-0qi7xiFr_Rd=g@mail.gmail.com> <CAKrd9eWkpa-XhgDAZezjjh0cpD14SA7-ABQMCC10TPEmZJYVFQ@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
On Jul 22, 2013, at 12:11 PM, XiaoQI Ge <ghw@7axu.com> wrote: > I have used this method successfully loaded the kernel > > Hold the "User Boot" button down, and then plug in the power (USB or > 5V adaptor). Keep holding down the button until you see the bank of 4 > LED's light up for a few seconds. You can now release the button. > > > But soon the panic To fix this panic use the following patch Index: sys/vm/vm_map.c =================================================================== --- sys/vm/vm_map.c (revision 253514) +++ sys/vm/vm_map.c (working copy) @@ -239,8 +239,7 @@ vm_map_t map; map = (vm_map_t)mem; - map->nentries = 0; - map->size = 0; + memset(map, 0, sizeof(*map)); mtx_init(&map->system_mtx, "vm map (system)", NULL, MTX_DEF | MTX_DUPOK); sx_init(&map->lock, "vm map (user)"); return (0); which was posted by Tim yesterday. It fixes the issue for me. (Or disable invariants). Tim: Your patch looks good. Why don't you commit it? Best regards Michael > > U-Boot 2013.04 (Jul 22 2013 - 00:17:14) > > I2C: ready > DRAM: 512 MiB > WARNING: Caches not enabled > MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 > Using default environment > > musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn) > musb-hdrc: MHDRC RTL version 2.0 > musb-hdrc: setup fifo_mode 4 > musb-hdrc: 28/31 max ep, 16384/16384 memory > USB Peripheral mode controller at 47401000 using PIO, IRQ 0 > musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn) > musb-hdrc: MHDRC RTL version 2.0 > musb-hdrc: setup fifo_mode 4 > musb-hdrc: 28/31 max ep, 16384/16384 memory > USB Host mode controller at 47401800 using PIO, IRQ 0 > Net: <ethaddr> not set. Validating first E-fuse MAC > cpsw, usb_ether > Hit any key to stop autoboot: 0 > mmc0 is current device > SD/MMC found on device 0 > reading bb-uEnv.txt > reading bbubldr > 237048 bytes read in 34 ms (6.6 MiB/s) > reading bboneblk.dtb > 13946 bytes read in 7 ms (1.9 MiB/s) > Booting from mmc ... > ## Starting application at 0x88000054 ... > Consoles: U-Boot console > Compatible API signature found @9f242240 > Number of U-Boot devices: 2 > > FreeBSD/armv6 U-Boot loader, Revision 1.2 > (root@FreeBSD.7axu.com, Mon Jul 22 00:18:45 CST 2013) > DRAM: 512MB > > Device: disk > - > /boot/kernel/kernel text=0x45fe48 data=0x39e24+0x17cac8 > syms=[0x4+0x8ae70+0x4+0x532d8] > Hit [Enter] to boot immediately, or any other key for command prompt. > Booting [/boot/kernel/kernel]... > Using DTB provided by U-Boot. > Kernel entry at 0x80200100... > Kernel args: (null) > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2013 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 10.0-CURRENT #0 r253506: Mon Jul 22 00:16:46 CST 2013 > root@FreeBSD.7axu.com:/root/crochet-freebsd/work/obj/arm.armv6/usr/src/sys/BBB > arm > FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 > WARNING: WITNESS option enabled, expect reduced performance. > panic: lock "vm map (user)" 0xc0a2c050 already initialized > KDB: enter: panic > [ thread pid 0 tid 0 ] > Stopped at $d: ldrb r15, [r15, r15, ror r15]! > db> bt > Tracing pid 0 tid 0 td 0xc0813b10 > db_trace_self() at db_trace_self > pc = 0xc0565a4c lr = 0xc022bbc0 (db_stack_trace+0xf4) > sp = 0xc090aaa4 fp = 0xc090aabc > r10 = 0xc0666330 > db_stack_trace() at db_stack_trace+0xf4 > pc = 0xc022bbc0 lr = 0xc022b52c (db_command+0x264) > sp = 0xc090aac4 fp = 0xc090ab64 > r4 = 0x00000000 r5 = 0x00000000 > r6 = 0xc05c9011 > db_command() at db_command+0x264 > pc = 0xc022b52c lr = 0xc022b29c (db_command_loop+0x60) > sp = 0xc090ab6c fp = 0xc090ab7c > r4 = 0xc05a824b r5 = 0xc05c296b > r6 = 0xc0812b90 r7 = 0xc090ad4c > r8 = 0xc0813b10 r9 = 0xc06b05b4 > r10 = 0xc06665a0 > db_command_loop() at db_command_loop+0x60 > pc = 0xc022b29c lr = 0xc022dc9c (db_trap+0xdc) > sp = 0xc090ab84 fp = 0xc090aca4 > r4 = 0x00000000 r5 = 0xc090ab8c > r6 = 0xc06b05dc > db_trap() at db_trap+0xdc > pc = 0xc022dc9c lr = 0xc039c3fc (kdb_trap+0xd4) > sp = 0xc090acac fp = 0xc090accc > r4 = 0x00000000 r5 = 0x00000001 > r6 = 0xc06b05dc r7 = 0xc090ad4c > kdb_trap() at kdb_trap+0xd4 > pc = 0xc039c3fc lr = 0xc0575f64 (undefinedinstruction+0x274) > sp = 0xc090acd4 fp = 0xc090ad44 > r4 = 0x00000000 r5 = 0xc0575c4c > r6 = 0x00000000 r7 = 0xe7ffffff > r8 = 0xc0813b10 r9 = 0xc090ad4c > r10 = 0xc039bcf0 > undefinedinstruction() at undefinedinstruction+0x274 > pc = 0xc0575f64 lr = 0xc0567278 (exception_exit) > sp = 0xc090ad4c fp = 0xc090ada0 > r4 = 0xc05c29c5 r5 = 0xc090adf4 > r6 = 0xc05c6248 r7 = 0xc06a24e0 > r8 = 0xc0813b10 r9 = 0xc06a2340 > r10 = 0xc08145ec > exception_exit() at exception_exit > pc = 0xc0567278 lr = 0xc039bce4 (kdb_enter+0x40) > sp = 0xc090ad98 fp = 0xc090ada0 > r0 = 0xc06b05c4 r1 = 0x00000000 > r2 = 0xc05c6361 r3 = 0x000000ab > r4 = 0xc05c29c5 r5 = 0xc090adf4 > r6 = 0xc05c6248 r7 = 0xc06a24e0 > r8 = 0xc0813b10 r9 = 0xc06a2340 > r10 = 0xc08145ec r12 = 0x00000000 > $a() at $a > pc = 0xc039bcf4 lr = 0xc0366484 (vpanic+0xb8) > sp = 0xc090ada8 fp = 0xc090adc8 > r4 = 0x00000100 > vpanic() at vpanic+0xb8 > pc = 0xc0366484 lr = 0xc03663bc ($d) > sp = 0xc090add0 fp = 0xc090ade8 > r4 = 0xc06a23e0 r5 = 0xc05c6248 > r6 = 0xc090adf4 r7 = 0xc06a2340 > r8 = 0x00320000 r9 = 0x00000000 > r10 = 0xc0a2c000 > $d() at $d > pc = 0xc03663bc lr = 0xc039ce78 (lock_init+0x44) > sp = 0xc090ae00 fp = 0xc090ae18 > r4 = 0xc05ca274 r5 = 0x00000000 > r6 = 0xc0a2c050 r7 = 0xc067ee90 > lock_init() at lock_init+0x44 > pc = 0xc039ce78 lr = 0xc036d83c (sx_init_flags+0x8c) > sp = 0xc090ae20 fp = 0xc090ae30 > r4 = 0xc0a2c050 r5 = 0xc05ca274 > r6 = 0x00000000 r7 = 0x00000000 > r8 = 0xc053c094 r9 = 0x00000102 > sx_init_flags() at sx_init_flags+0x8c > pc = 0xc036d83c lr = 0xc05427cc (vm_map_zinit+0x40) > sp = 0xc090ae38 fp = 0xc090ae40 > r4 = 0xc0a2c000 r5 = 0x00000002 > r6 = 0xc0a2cfa8 > vm_map_zinit() at vm_map_zinit+0x40 > pc = 0xc05427cc lr = 0xc053a808 (keg_alloc_slab+0x1f4) > sp = 0xc090ae48 fp = 0xc090ae70 > r4 = 0xc0a2f9c0 > keg_alloc_slab() at keg_alloc_slab+0x1f4 > pc = 0xc053a808 lr = 0xc053a5cc (uma_prealloc+0xfc) > sp = 0xc090ae78 fp = 0xc090ae98 > r4 = 0xc0a2ed80 r5 = 0xc0a2f9c0 > r6 = 0xc0a2fa14 r7 = 0x00000001 > r8 = 0xc05e905a r9 = 0xc0814310 > r10 = 0xc05e91c5 > uma_prealloc() at uma_prealloc+0xfc > pc = 0xc053a5cc lr = 0xc05426b8 (vm_map_startup+0x68) > sp = 0xc090aea0 fp = 0xc090aec0 > r4 = 0xc080f520 r5 = 0x00000000 > r6 = 0x00000003 r7 = 0xc05f4d7c > r8 = 0xc0814314 r9 = 0xc0814310 > r10 = 0x0000000e > vm_map_startup() at vm_map_startup+0x68 > pc = 0xc05426b8 lr = 0xc054114c (vm_mem_init+0x2c) > sp = 0xc090aec8 fp = 0xc090aed0 > r4 = 0xc08172c0 r5 = 0xc0813b08 > r6 = 0x00000000 > vm_mem_init() at vm_mem_init+0x2c > pc = 0xc054114c lr = 0xc0317778 (mi_startup+0x11c) > sp = 0xc090aed8 fp = 0xc090aef0 > r4 = 0x00000001 > mi_startup() at mi_startup+0x11c > pc = 0xc0317778 lr = 0xc0200224 (virt_done+0x34) > sp = 0xc090aef8 fp = 0x00000000 > r4 = 0x80200264 r5 = 0x80200158 > r6 = 0x88051b18 r7 = 0x8020014c > r8 = 0x0000000a r9 = 0xc08fb000 > virt_done() at virt_done+0x34 > pc = 0xc0200224 lr = 0xc0200224 (virt_done+0x34) > sp = 0xc090aef8 fp = 0x00000000 > Unable to unwind further > db> > > > -- > Regards. > By: XiaoQI Ge; PGP:8B09D5F7 > WWW: https://www.7axu.com/ > > > > 2013/7/22 XiaoQI Ge <ghw@7axu.com> >> >> I did not start successfully >> >> >> U-Boot# fatload mmc 0 0x88000000 bbubldr >> reading bbubldr >> 237048 bytes read in 33 ms (6.9 MiB/s) >> U-Boot# go 0x88000000 >> ## Starting application at 0x88000000 ... >> data abort >> >> MAYBE you should read doc/README.arm-unaligned-accesses >> >> pc : [<8800002c>] lr : [<9f35b2d4>] >> sp : 9f238e10 ip : 0000000f fp : 9f239808 >> r10: 00000002 r9 : 9f3adf90 r8 : 9f238f40 >> r7 : 9f239818 r6 : 88000000 r5 : 00000002 r4 : 9f23981c >> r3 : 88000000 r2 : f8000000 r1 : 9f23981c r0 : 00000008 >> Flags: nZCv IRQs off FIQs on Mode SVC_32 >> Resetting CPU ... >> >> resetting ... >> >> U-Boot SPL 2013.04-dirty (May 06 2013 - 16:12:47) >> >> musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn) >> musb-hdrc: MHDRC RTL version 2.0 >> musb-hdrc: setup fifo_mode 4 >> musb-hdrc: 28/31 max ep, 16384/16384 memory >> USB Peripheral mode controller at 47401000 using PIO, IRQ 0 >> musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn) >> musb-hdrc: MHDRC RTL version 2.0 >> musb-hdrc: setup fifo_mode 4 >> musb-hdrc: 28/31 max ep, 16384/16384 memory >> USB Host mode controller at 47401800 using PIO, IRQ 0 >> OMAP SD/MMC: 0 >> mmc_send_cmd : timeout: No status update >> reading u-boot.img >> reading u-boot.img >> >> >> U-Boot 2013.04-dirty (May 06 2013 - 16:12:47) >> >> >> I2C: ready >> DRAM: 512 MiB >> WARNING: Caches not enabled >> NAND: No NAND device found!!! >> 0 MiB >> >> MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 >> *** Warning - readenv() failed, using default environment >> >> >> musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn) >> musb-hdrc: MHDRC RTL version 2.0 >> musb-hdrc: setup fifo_mode 4 >> musb-hdrc: 28/31 max ep, 16384/16384 memory >> USB Peripheral mode controller at 47401000 using PIO, IRQ 0 >> musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn) >> musb-hdrc: MHDRC RTL version 2.0 >> musb-hdrc: setup fifo_mode 4 >> musb-hdrc: 28/31 max ep, 16384/16384 memory >> USB Host mode controller at 47401800 using PIO, IRQ 0 >> Net: <ethaddr> not set. Validating first E-fuse MAC >> cpsw, usb_ether >> Hit any key to stop autoboot: 0 >> U-Boot# >> >> >> Startup log : >> U-Boot SPL 2013.04-dirty (May 06 2013 - 16:12:47) >> >> musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn) >> musb-hdrc: MHDRC RTL version 2.0 >> musb-hdrc: setup fifo_mode 4 >> musb-hdrc: 28/31 max ep, 16384/16384 memory >> USB Peripheral mode controller at 47401000 using PIO, IRQ 0 >> musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn) >> musb-hdrc: MHDRC RTL version 2.0 >> musb-hdrc: setup fifo_mode 4 >> musb-hdrc: 28/31 max ep, 16384/16384 memory >> USB Host mode controller at 47401800 using PIO, IRQ 0 >> OMAP SD/MMC: 0 >> mmc_send_cmd : timeout: No status update >> reading u-boot.img >> reading u-boot.img >> >> >> U-Boot 2013.04-dirty (May 06 2013 - 16:12:47) >> >> >> I2C: ready >> DRAM: 512 MiB >> WARNING: Caches not enabled >> NAND: No NAND device found!!! >> 0 MiB >> >> MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 >> *** Warning - readenv() failed, using default environment >> >> >> musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn) >> musb-hdrc: MHDRC RTL version 2.0 >> musb-hdrc: setup fifo_mode 4 >> musb-hdrc: 28/31 max ep, 16384/16384 memory >> USB Peripheral mode controller at 47401000 using PIO, IRQ 0 >> musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn) >> musb-hdrc: MHDRC RTL version 2.0 >> musb-hdrc: setup fifo_mode 4 >> musb-hdrc: 28/31 max ep, 16384/16384 memory >> USB Host mode controller at 47401800 using PIO, IRQ 0 >> Net: <ethaddr> not set. Validating first E-fuse MAC >> cpsw, usb_ether >> Hit any key to stop autoboot: 0 >> gpio: pin 53 (gpio 53) value is 1 >> mmc0 is current device >> micro SD card found >> mmc0 is current device >> gpio: pin 54 (gpio 54) value is 1 >> >> SD/MMC found on device 0 >> reading uEnv.txt >> ** Unable to read file uEnv.txt ** >> gpio: pin 55 (gpio 55) value is 1 >> Failed to mount ext2 filesystem... >> ** Unrecognized filesystem type ** >> U-Boot# >> >> >> >> -- >> Regards. >> By: XiaoQI Ge; PGP:8B09D5F7 >> WWW: https://www.7axu.com/ >> >> >> >> 2013/7/22 Tim Kientzle <kientzle@freebsd.org> >>> >>> Please send me the Crochet build logs and I'll see if >>> I can puzzle anything out. >>> >>> The console log from running Crochet would also be interesting. >>> >>> Tim >>> >>> >>> On Jul 21, 2013, at 9:25 PM, Tom Everett wrote: >>> >>>> ok, I've rebuilt with a fresh source tree, fresh xdev build and fresh pull of crochet; same result. Should I post the crochet build logs? Could the fact that I'm building it on AMD64 be part of the problem? >>>> >>>> My host OS is: >>>> >>>> FreeBSD 9.1-RELEASE-p4 #0: Mon Jun 17 11:42:37 UTC 2013 >>>> root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >>>> CPU: AMD A8-3870 APU with Radeon(tm) HD Graphics (3000.26-MHz K8-class CPU) >>>> >>>> >>>> >>>> Here is the console log from the Beagle >>>> >>>> U-Boot 2013.04 (Jul 21 2013 - 22:07:04) >>>> >>>> I2C: ready >>>> DRAM: 512 MiB >>>> WARNING: Caches not enabled >>>> MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 >>>> Using default environment >>>> >>>> musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn) >>>> musb-hdrc: MHDRC RTL version 2.0 >>>> musb-hdrc: setup fifo_mode 4 >>>> musb-hdrc: 28/31 max ep, 16384/16384 memory >>>> USB Peripheral mode controller at 47401000 using PIO, IRQ 0 >>>> musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn) >>>> musb-hdrc: MHDRC RTL version 2.0 >>>> musb-hdrc: setup fifo_mode 4 >>>> musb-hdrc: 28/31 max ep, 16384/16384 memory >>>> USB Host mode controller at 47401800 using PIO, IRQ 0 >>>> Net: <ethaddr> not set. Validating first E-fuse MAC >>>> cpsw, usb_ether >>>> Hit any key to stop autoboot: 0 >>>> mmc0 is current device >>>> SD/MMC found on device 0 >>>> reading bb-uEnv.txt >>>> reading bbubldr >>>> 237488 bytes read in 34 ms (6.7 MiB/s) >>>> reading bboneblk.dtb >>>> 13946 bytes read in 7 ms (1.9 MiB/s) >>>> Booting from mmc ... >>>> ## Starting application at 0x88000054 ... >>>> Consoles: U-Boot console >>>> Compatible API signature found @9f242240 >>>> Number of U-Boot devices: 2 >>>> >>>> FreeBSD/armv6 U-Boot loader, Revision 1.2 >>>> (root@bernice, Sun Jul 21 22:07:44 MDT 2013) >>>> DRAM: 512MB >>>> >>>> Device: disk >>>> | >>>> can't load 'kernel' >>>> >>>> Type '?' for a list of commands, 'help' for more detailed help. >>>> loader> ls >>>> / >>>> d .snap >>>> .sujournal >>>> loader> >>>> >>>> >>>> >>>> On Sun, Jul 21, 2013 at 4:02 PM, Rui Paulo <rpaulo@freebsd.org> wrote: >>>> On 21 Jul 2013, at 14:42, Tom Everett <tom@khubla.com> wrote: >>>> >>>>> ls shows: >>>>> >>>>> / >>>>> d .snap >>>>> .sujournal >>>>> >>>>> and lsdev shows: >>>>> >>>>> disk devices: >>>>> disk0 (MMC) >>>>> disk0s1: DOS/Windows >>>>> disk0s2: FreeBSD >>>>> disk0s2a: FreeBSD UFS >>>>> net devices: >>>>> net0: >>>>> >>>>> I'm doing a fresh checkout of the entire CURRENT source tree, a rebuild of >>>>> dev and then a rebuild of the kernel. We'll see what happens. >>>> >>>> >>>> As you can see, your root file system has no files. This has happened to me in the past and I don't know why, but re-creating the image file with crochet seems to fix it. >>>> >>>> -- >>>> Rui Paulo >>>> >>>> >>>> >>>> >>>> -- >>>> A better world shall emerge based on faith and understanding - Douglas MacArthur >>> >>> _______________________________________________ >>> freebsd-arm@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >>> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >> >> > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?519DDF45-9D8E-4AA7-9140-C4B955C71CFB>
