Show Posts
|
|
Pages: 1 [2] 3
|
|
17
|
Hardware and U-Boot firmware / U-Boot stuff / Re: I Seem to Have Built a Bad Kernel
|
on: August 04, 2009, 09:57:27 PM
|
I saw that, and the config that's labeled for 2.6.30.4 is actually from 2.6.30.3, but I guess there were no changes in options that affected it. I generated a patch from the kirkwood_defconfig to that config, and I'll be looking through it tomorrow to see what significant changes are in there. I'll probably wind up just using the uImage from that link or the one from the recovery/install system, but it'll be interesting to see what's different. EDIT: Here's what the problem was: ####### change bootargs, replace nand_mtd with orion_nand and add rootfstype=jffs2 # setenv bootargs rootfstype=jffs2 console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock1 rw ip=192.168.1.9:192.168.1.4:192.168.1.4:255.255.255.0:DB88FXX81:eth0:none # saveenv
After doing that, my kernel boots.
|
|
|
|
|
18
|
Hardware and U-Boot firmware / U-Boot stuff / Re: I Seem to Have Built a Bad Kernel
|
on: August 04, 2009, 08:55:27 PM
|
That didn't do the trick. Reading the above log, it seems like the root partition in the flash is now /dev/mtdblock2, but it was originally /dev/mtdblock1, but changing that doesn't make a difference either. I can see JFFS2 loading from the kernel boot log, so I'm not sure what's causing the issues. My bootargs in U-Boot is currently "console=ttyS0,115200 mtdparts=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock2 rw ip=10.4.50.4:10.4.50.5:10.4.50.5:255.255.255.0:DB88FXX81:eth0:none rootfs=jffs2" I haven't modified the flash partition sizes, so that part should still be correct. The boot fails, ending in these lines: Root-NFS: No NFS server available, giving up. VFS: Unable to mount root fs via NFS, trying floppy. VFS: Cannot open root device "<NULL>" or unknown-block(2,0) Please append a correct "root=" boot option; here are the available partitions: 1f00 1024 mtdblock0 (driver?) 1f01 4096 mtdblock1 (driver?) 1f02 519168 mtdblock2 (driver?) Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) [<c002a810>] (unwind_backtrace+0x0/0xdc) from [<c0309a90>] (panic+0x48/0x12c) [<c0309a90>] (panic+0x48/0x12c) from [<c0008f30>] (mount_block_root+0x1d4/0x21c) [<c0008f30>] (mount_block_root+0x1d4/0x21c) from [<c000919c>] (prepare_namespace+0x120/0x180) [<c000919c>] (prepare_namespace+0x120/0x180) from [<c00085ac>] (kernel_init+0xbc/0xec) [<c00085ac>] (kernel_init+0xbc/0xec) from [<c0039694>] (do_exit+0x0/0x6e0) [<c0039694>] (do_exit+0x0/0x6e0) from [<df82a300>] (0xdf82a300)
Here's where it scans the flash: NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit) Scanning device for bad blocks Bad eraseblock 554 at 0x000004540000 Bad eraseblock 895 at 0x000006fe0000 Bad eraseblock 1038 at 0x0000081c0000 Bad eraseblock 1202 at 0x000009640000 Bad eraseblock 1739 at 0x00000d960000 Bad eraseblock 1856 at 0x00000e800000 Bad eraseblock 1908 at 0x00000ee80000 Bad eraseblock 3012 at 0x000017880000 Bad eraseblock 3225 at 0x000019320000 Bad eraseblock 3238 at 0x0000194c0000 Bad eraseblock 3243 at 0x000019560000 Bad eraseblock 3311 at 0x000019de0000 Bad eraseblock 3317 at 0x000019ea0000 Bad eraseblock 3529 at 0x00001b920000 Bad eraseblock 3576 at 0x00001bf00000 Creating 3 MTD partitions on "orion_nand": 0x000000000000-0x000000100000 : "u-boot" 0x000000100000-0x000000500000 : "uImage" 0x000000500000-0x000020000000 : "root" Here's the line where the JFFS2 system initializes: JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc. I guess the first thing I should ask is whether there's a patch that fixes this behavior because this image is the 2.6.30.4 kernel compiled from the kirkwood_defconfig with no patches and no modifications to the config. The second thing I should ask is whether this is worth diagnosing because I can just get a premade image elsewhere. If I've configured something wrong though, it could be a good learning experience.
|
|
|
|
|
19
|
Hardware and U-Boot firmware / U-Boot stuff / I Seem to Have Built a Bad Kernel
|
on: August 04, 2009, 06:55:06 PM
|
Well, I tried building 2.6.30.4 of the mainline kernel today, using the kirkwood_defconfig, and now I'm getting this when I reboot: List of all partitions: 1f00 1024 mtdblock0 (driver?) 1f01 4096 mtdblock1 (driver?) 1f02 519168 mtdblock2 (driver?) No filesystem could mount root, tried: ext3 ext2 cramfs vfat msdos Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,1) [<c002a810>] (unwind_backtrace+0x0/0xdc) from [<c0309a90>] (panic+0x48/0x12c) [<c0309a90>] (panic+0x48/0x12c) from [<c0008f30>] (mount_block_root+0x1d4/0x21c) [<c0008f30>] (mount_block_root+0x1d4/0x21c) from [<c000919c>] (prepare_namespace+0x120/0x180) [<c000919c>] (prepare_namespace+0x120/0x180) from [<c00085ac>] (kernel_init+0xbc/0xec) [<c00085ac>] (kernel_init+0xbc/0xec) from [<c0039694>] (do_exit+0x0/0x6e0) [<c0039694>] (do_exit+0x0/0x6e0) from [<df82a300>] (0xdf82a300) eth0: link up, 1000 Mb/s, full duplex, flow control disabled
I assumed that the defconfig would have jffs2 support, but apparantly this isn't the case. Do I have to get uBoot to boot from TFTP now if I want to get it running again? Where can I find a good kernel uImage to start from?
|
|
|
|
|
20
|
General Category / General Discussion / Re: Received yours yet?
|
on: August 03, 2009, 02:32:03 PM
|
Ordered June 13, shipped today (July 29). Hopefully they'll give me a tracking number, but I've learned not to rely on tracking services. UPS and FedEx are more worried about getting the package there than letting you watch as it goes through shipping hubs.
Arrived on my doorstep today (August 3). I knew the Sheevaplug was small, but for some reason I was expecting a larger box.
|
|
|
|
|
21
|
General Category / General Discussion / Re: Received yours yet?
|
on: July 29, 2009, 09:25:56 PM
|
|
Ordered June 13, shipped today (July 29). Hopefully they'll give me a tracking number, but I've learned not to rely on tracking services. UPS and FedEx are more worried about getting the package there than letting you watch as it goes through shipping hubs.
|
|
|
|
|
22
|
General Category / Application ideas and development Q/A / Re: Webcam - Video Encoding Load?
|
on: July 22, 2009, 05:04:59 AM
|
|
I'm not sure where floating point operations are and aren't used, but I do know that lossy codecs tend to use them, and basically any significant floating point use will kill the plug. It's floating point performance is probably below that of the original Pentium (although it doesn't have a division glitch like the Pentium had).
|
|
|
|
|
23
|
General Category / Application ideas and development Q/A / Re: Networked Backup Solution?
|
on: July 21, 2009, 11:48:28 AM
|
|
I don't even have a SD card; my plan is to have it boot from the onboard flash and use an external hard drive for bulk storage. The trick is that I maintain two linux boxes in a network of Windows boxes, and I need to be able to backup both types, which AMANDA doesn't do well. If I remember correctly, it can backup Windows boxes if you share the hard drive with SMB, which just doesn't seem like something I want to do. I did, however, get Bacula working on Vista, and I'm looking into getting scheduled backups running. It's not as simple as just making a tar.lzma of my entire root filesystem, but it'll work for everything.
|
|
|
|
|
24
|
General Category / Application ideas and development Q/A / Re: Webcam - Video Encoding Load?
|
on: July 21, 2009, 11:43:18 AM
|
|
The problem isn't CPU power, the problem is that there is no hardware FPU (Floating Point Unit) to process floating point values quickly. As a consequence, the CPU must do floating point calculations, which is much much slower. Lossy encoding, such as video encoding, generally uses floating point values.
|
|
|
|
|
25
|
General Category / General Discussion / Re: Sheevaplug - 32 or 64 bit?
|
on: July 19, 2009, 10:46:30 PM
|
|
I'm not sure what your point is. I've already stated that I doubt many 32 bit systems will still be in operation, and I used the embedded device example just to show that changing the currently used date format isn't possible in many scenarios. I never said we were all doomed; this is just a problem on the horizon. It will probably cause some problems in the next 20 years, but due to the 64 bit move, I doubt there will be any immensely serious consequences. In case it wasn't clear before, 64 bit Posix operating systems do store the time in a 64 bit signed integer, which will overflow in a few million years. Applications compiled for these systems also store the date in 64 bits. Ironically enough, the open source world is pretty much perfectly safe.
|
|
|
|
|
26
|
General Category / General Discussion / Re: Sheevaplug - 32 or 64 bit?
|
on: July 19, 2009, 10:21:43 PM
|
|
Unfortunately, my assumption is also correct. The Unix time is stored as a signed 32 bit integer in Unix, Linux, and other operating systems, and it has been stored that way for a very long time. So many applications depend on this that it can't be easily changed. Even if the kernel code was modified to use a 64 bit signed integer instead, or even two 32 bit fields as you suggest, the bug would still exist and it would still have consequences because applications couldn't be adapted to the new format. Furthermore, embedded systems like the Sheevaplug that are used in many environments where they are configured and left to run for years with no maintenance frequently cannot be updated, and thus will suffer from a problem like this.
|
|
|
|
|
27
|
General Category / General Discussion / Re: Sheevaplug - 32 or 64 bit?
|
on: July 19, 2009, 08:30:51 PM
|
Well, it's basically the Y2K bug all over again, only this time it only affects Unix and Linux. Unix and Linux measure time in seconds since January 1, 1970, and on some day in 2038, 32 bit versions of Unix and Linux are going to overflow their clocks and wind up showing that the time is somewhere way in the past. It's a good ways off, though, and I doubt many 32 bit systems will still be in operation. For more, you can check out the Wikipedia article at http://en.wikipedia.org/wiki/Year_2038_problem
|
|
|
|
|
28
|
General Category / General Discussion / Re: Only one USB serial is showing up!
|
on: July 19, 2009, 11:48:24 AM
|
|
I would investigate this line: usb 7-2: Ignoring serial port reserved for JTAG
There's probably some new method for accessing JTAG that was added in the new kernel or something. It knows it's there, it just won't use it as a serial console.
EDIT: A quick google shows that if you really want to access JTAG, you should investigate openocd. The serial driver was revised so it doesn't treat JTAG interfaces as serial consoles.
|
|
|
|
|
30
|
General Category / General Discussion / Re: Received yours yet?
|
on: July 18, 2009, 12:37:44 AM
|
|
The comments on this forum aren't relevant to you because we ordered while a backorder notice was in place and you didn't. If they deliberately removed it, they must think that the massive delays they experienced before are coming to a close. I highly doubt that they would remove the backorder notice and still have a massive delay. Have you emailed their sales department to see when they expect it to ship? I would expect that it may take a week or two, but I doubt you'll experience the month or two month delays that we saw.
|
|
|
|
|