• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1]
1  Hardware and U-Boot firmware / U-Boot stuff / Re: Current Denx U-Boot on: October 06, 2009, 11:57:36 AM
Hi,

i tried the u-boot in the marvell-tree according to the instructions in the wiki. It actually seems to work, I can boot a kernel off NAND, but in addition to the bbt-error mentioned by TundraMan it also seems, that U-Boot upgraded my memory:

Code:
U-Boot 2009.08-00302-g80e2939 (Oct 06 2009 - 20:47:11)
Marvell-Sheevaplug

SoC:   Kirkwood 88F6281_A0
DRAM:  8589934592 MB
NAND:  27469700292149248 MiB
nand_bbt: Can't scan flash and build the RAM-based BBT
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 6442450944 0
Marvell>>
2  Hardware and U-Boot firmware / U-Boot stuff / Current Denx U-Boot on: October 05, 2009, 05:25:24 PM
Hello,

I didn't touch my plug for four months ... didn't have time. Now I wanted to bring everything up to date, beginning with U-Boot. I saw, that the wiki http://plugcomputer.org/plugwiki/index.php/Das_U-boot_plug_support already suggests installing from Denx-GIT. I tried this today and the plug doesn't get further than "DRAM: ". Is this supposed to work? Any hints?
3  Hardware and U-Boot firmware / U-Boot stuff / Re: Upgraded to open u-boot -> tftp not working anymore. on: June 11, 2009, 11:48:24 PM
Ack.
4  Hardware and U-Boot firmware / U-Boot stuff / Re: Upgraded to open u-boot -> tftp not working anymore. on: June 11, 2009, 02:55:45 AM
Hello,

sorry, the lines marked with #### are of course comments from me, so that you know what's going on (it hung completely).

just to confirm the hardware I am using is "Sheeva plug, MODEL: 003-SP1001, SKU#:RD88F6281-BPLUG-A", is this the same that you are using?

Yes, when i turn my unit around, there's a sticker with "Sheeva Plug, MODEL: 003-SP1001, SKU #: RD-88F6281-BPLUG-A", so it's the same. One difference might be, that my unit is from the most recent production run at globalscale. I received mine only a week ago.

I didn't use wireshark yet, but i'll look into it. But that has to wait until the weekend, i'm busy 'til friday. Can you upload a binary of your uboot.git, just to be sure that there are no compiler issues? Not that i expect that, but it's very mysterious that it runs on your hardware but doesn't work on mine. I'm as puzzled as you are.

how you can help me to solve this?.....:-(
Since i'm just an (experienced) linux user and i know nothing about the internals of the kernel and uboot not much ... but i can do anything you tell me to do, of course.




5  Hardware and U-Boot firmware / U-Boot stuff / Re: Upgraded to open u-boot -> tftp not working anymore. on: June 10, 2009, 12:08:06 PM
Hi,

i saw that you are using a newer version, so i updated to the same version as you tested. The problems still remained, so i defined DEBUG as requested. Here's the log:

Code:
Marvell>> reset
resetting ...


U-Boot 2009.06-rc2-02207-g14c575a-dirty (Jun 10 2009 - 21:00:20)
Marvell-Sheevaplug

SoC:   Kirkwood 88F6281_A0
DRAM:  512 MB
NAND:  512 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
smi_reg_read:(adr 0, off 21) value= 1070
smi_reg_read:(adr 0, off 0) value= 1140
smi_reg_read:(adr 0, off 0) value= 1140
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
Marvell>> set serverip 10.10.10.4
Marvell>> ping 10.10.10.4
smi_reg_read:(adr 0, off 1) value= 796d
smi_reg_read:(adr 0, off 1) value= 796d
Using egiga0 device
#### paperclip-reset after a minute ####

U-Boot 2009.06-rc2-02207-g14c575a-dirty (Jun 10 2009 - 21:00:20)
Marvell-Sheevaplug

SoC:   Kirkwood 88F6281_A0
DRAM:  512 MB
NAND:  512 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
smi_reg_read:(adr 0, off 21) value= 1070
smi_reg_read:(adr 0, off 0) value= 1140
smi_reg_read:(adr 0, off 0) value= 1140
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
Marvell>> set serverip 10.10.10.4
Marvell>> dhcp uImage
smi_reg_read:(adr 0, off 1) value= 796d
smi_reg_read:(adr 0, off 1) value= 796d
BOOTP broadcast 1

#### paperclip-reset necessary ####
6  Hardware and U-Boot firmware / U-Boot stuff / Re: Upgraded to open u-boot -> tftp not working anymore. on: June 09, 2009, 05:15:04 PM
I made another discovery: uboot.git also prevents USB from working after the kernel is loading ?!?

I was able to reproduce this phenomenon several times and once i logged every single step for others to inspect. The log is veeery long, so i'll make the relevent portions bold. As you can see i didn't change the kernel and there are also no changes to the uBoot environment variables (except leaving out arcNumber/mainlinelinux):

[edit:] Well, "bold" doesn't work inside a code-block and posting all that in a "teletype" might upset someone, also the post exceeds the max-size, therefore i'm uploading an attachment.
7  Hardware and U-Boot firmware / U-Boot stuff / Re: Upgraded to open u-boot -> tftp not working anymore. on: June 09, 2009, 09:59:30 AM
Hi prafulla,

thanks for helping! Here is the output:

Code:
Marvell>> md f1010000
f1010000: 01111111 11113322 00001111 00100000    ...."3..........
f1010010: 00000000 00000000 00000000 00000000    ................
f1010020: 00000000 00000000 00000000 00000000    ................
f1010030: 00925e96 00000002 00000001 00000000    .^..............
f1010040: 00000000 00000000 00000000 00000000    ................
f1010050: 00180007 00000000 00000000 00000000    ................
f1010060: 00000000 00000000 00000000 00000000    ................
f1010070: 00000000 00000000 00000000 00000060    ............`...
f1010080: 00000000 a9403302 00410a03 00000010    .....3@...A.....
f1010090: 12121212 12121212 12121112 11121112    ................
f10100a0: 00001212 00000000 00000000 00000000    ................
f10100b0: 00000000 00000000 00121212 00000005    ................
f10100c0: 00000000 03950000 00000000 00000000    ................
f10100d0: af001000 00000000 00000080 ffff0000    ................
f10100e0: 1b1b1b9b 011b1b1b 00000000 00000000    ................
f10100f0: 00000000 00000000 00000000 00000000    ................
Marvell>> md f1072000
f1072000: 00000000 0c001140 00000000 000000e0    ....@...........
f1072010: 000100ff 00000000 00000000 00000000    ................
f1072020: 00000000 00000000 00000000 00000000    ................
f1072030: 00000000 00000000 00000000 00000000    ................
f1072040: 00000000 00000000 00000000 00000000    ................
f1072050: 00000000 00000000 00000000 00000000    ................
f1072060: 00000000 00000000 00000000 00000000    ................
f1072070: 00000000 00000000 00000000 00000000    ................
f1072080: 00000010 00000000 00000000 e7438c10    ..............C.
f1072090: 00000000 00000000 00000000 00000000    ................
f10720a0: 00000000 00000000 00000000 00000000    ................
f10720b0: 00010002 00000000 00000000 00000000    ................
f10720c0: 00000000 00000000 00000000 00000000    ................
f10720d0: 00000000 00000000 00000000 00000000    ................
f10720e0: 00000000 00000000 00000000 00000000    ................
f10720f0: 00000000 00000000 00000000 00000000    ................
Marvell>> md f1072100
f1072100: 00000000 00000000 00000000 00000000    ................
f1072110: 00000000 00000000 00000000 00000000    ................
f1072120: 00000000 00000000 00000000 00000000    ................
f1072130: 00000000 00000000 00000000 00000000    ................
f1072140: 00000000 00000000 00000000 00000000    ................
f1072150: 00000000 00000000 00000000 00000000    ................
f1072160: 00000000 00000000 00000000 00000000    ................
f1072170: 00000000 00000000 00000000 00000000    ................
f1072180: 00000000 00000000 00000000 00000000    ................
f1072190: 00000000 00000000 00000000 00000000    ................
f10721a0: 00000000 00000000 00000000 00000000    ................
f10721b0: 00000000 00000000 00000000 00000000    ................
f10721c0: 00000000 00000000 00000000 00000000    ................
f10721d0: 00000000 00000000 00000000 00000000    ................
f10721e0: 00000000 00000000 00000000 00000000    ................
f10721f0: 00000000 00000000 00000000 00000000    ................
Marvell>> md f1072200
f1072200: 00000000 00000000 00000000 00000000    ................
f1072210: 00000000 00000000 00000000 00000000    ................
f1072220: 00000000 00000000 00000000 00000000    ................
f1072230: 00000000 00000000 00000000 00000000    ................
f1072240: 00000000 00000000 00000000 00000000    ................
f1072250: 00000000 00000000 00000000 00000000    ................
f1072260: 00000000 00000000 00000000 00000000    ................
f1072270: 00000000 00000000 00000000 00000000    ................
f1072280: 00000000 00000000 00000000 00000000    ................
f1072290: 0000003f 00000fff 00000000 00000000    ?...............
f10722a0: 00000000 00000000 00000000 00000000    ................
f10722b0: 00000000 00000000 00000000 00000000    ................
f10722c0: 00000000 00000000 00000000 00000000    ................
f10722d0: 00000000 00000000 00000000 00000000    ................
f10722e0: 00000000 00000000 00000000 00000000    ................
f10722f0: 00000000 00000000 00000000 00000000    ................
Marvell>> md f1072300
f1072300: 00000000 00000000 00000000 00000000    ................
f1072310: 00000000 00000000 00000000 00000000    ................
f1072320: 00000000 00000000 00000000 00000000    ................
f1072330: 00000000 00000000 00000000 00000000    ................
f1072340: 00000000 00000000 00000000 00000000    ................
f1072350: 00000000 00000000 00000000 00000000    ................
f1072360: 00000000 00000000 00000000 00000000    ................
f1072370: 00000000 00000000 00000000 00000000    ................
f1072380: 00000000 00000000 00000000 00000000    ................
f1072390: 00000000 00000000 00000000 00000000    ................
f10723a0: 00000000 00000000 00000000 00000000    ................
f10723b0: 00000000 00000000 00000000 00000000    ................
f10723c0: 00000000 00000000 00000000 00000000    ................
f10723d0: 00000000 00000000 00000000 00000000    ................
f10723e0: 00000000 00000000 00000000 00000000    ................
f10723f0: 00000000 00000000 00000000 00000000    ................
Marvell>> md f1072400
f1072400: 03c00000 00000000 00018000 00000006    ................
f1072410: 00008100 00000000 00000000 01000038    ............8...
f1072420: 00000000 00000000 00000000 00000000    ................
f1072430: 00000000 00000000 00000000 01e20218    ................
f1072440: 00000000 00001c2c 00000000 00238488    ....,.........#.
f1072450: 00000018 00000000 000121bd 00000000    .........!......
f1072460: 00000000 00010000 00000000 00000000    ................
f1072470: 00000010 00000000 0000001e 00000040    ............@...
f1072480: 00000000 00000000 00000000 0002003b    ............;...
f1072490: 00020000 00000000 00000000 00000000    ................
f10724a0: 00000001 0000000c 0000c815 0000a600    ................
f10724b0: 00000000 00000000 00000000 000100c0    ................
f10724c0: 00000001 0000000c 0000c815 0000a600    ................
f10724d0: 00000000 00000000 00000000 000000ff    ................
f10724e0: 00007fff 00000009 00000024 0000ffff    ........$.......
f10724f0: 00000000 00028b0a 002660ce 00000000    .........`&.....
Marvell>> md f1072500
f1072500: 00000000 00000000 00000000 00000000    ................
f1072510: 00000000 00000000 00000000 00000000    ................
f1072520: 00000000 00000000 00000000 00000000    ................
f1072530: 00000000 00000000 00000000 00000000    ................
f1072540: 00000000 00000000 00000000 00000000    ................
f1072550: 00000000 00000000 00000000 00000000    ................
f1072560: 00000000 00000000 00000000 00000000    ................
f1072570: 00000000 00000000 00000000 00000000    ................
f1072580: 00000000 00000000 00000000 00000000    ................
f1072590: 00000000 00000000 00000000 00000000    ................
f10725a0: 00000000 00000000 00000000 00000000    ................
f10725b0: 00000000 00000000 00000000 00000000    ................
f10725c0: 00000000 00000000 00000000 00000000    ................
f10725d0: 00000000 00000000 00000000 00000000    ................
f10725e0: 00000000 00000000 00000000 00000000    ................
f10725f0: 00000000 00000000 00000000 00000000    ................
Marvell>> md f1072600
f1072600: 00000000 00000000 00000000 00000000    ................
f1072610: 00000000 00000000 00000000 00000000    ................
f1072620: 00000000 00000000 00000000 00000000    ................
f1072630: 00000000 00000000 00000000 00000000    ................
f1072640: 00000000 00000000 00000000 00000000    ................
f1072650: 00000000 00000000 00000000 00000000    ................
f1072660: 00000000 00000000 00000000 00000000    ................
f1072670: 00000000 00000000 00000000 00000000    ................
f1072680: 00000000 00000000 00000000 00000000    ................
f1072690: 00000000 00000000 00000000 00000000    ................
f10726a0: 00000000 00000000 00000000 00000000    ................
f10726b0: 00000000 00000000 00000000 00000000    ................
f10726c0: 00000000 00000000 00000000 00000000    ................
f10726d0: 00000000 00000000 00000000 00000000    ................
f10726e0: 00000000 00000000 00000000 00000000    ................
f10726f0: 00000000 00000000 00000000 00000000    ................

This is actually from this version now:
Code:
U-Boot 2009.06-rc2-02174-ge5f7c16 (Jun 07 2009 - 11:48:25)
Marvell-Sheevaplug
8  Hardware and U-Boot firmware / U-Boot stuff / Re: Upgraded to open u-boot -> tftp not working anymore. on: June 08, 2009, 04:27:50 PM
I flashed the U-boot supplied by marvell and tftp worked again, i flashed u-boot from git and it didn't work again.

Am i really the only one experiencing this or is this probably a recent regression in marvells u-boot-git or did noone update his/her u-boot?
9  General Category / General Discussion / Download Page on: June 08, 2009, 01:24:41 PM
I would like to ask the webmaster to improve the download page of plugcomputer.org. I think a short description of the packages would suffice. It's not easy to guess, what's inside a SheevaPlug_LSP1.2. Also, is the SHEEVAPLUG_FILESYSTEM a jffs2 image or a .zip-file and so on. Keeping older revisions in an archive might also be of use.
10  Hardware and U-Boot firmware / U-Boot stuff / Re: Upgraded to open u-boot -> tftp not working anymore. on: June 08, 2009, 01:16:46 PM
Thanks for the advise. I checked, an both LEDs are on. Ping doesn't work either. I also tried to make a soft-reset after my hard-reset and try then: no luck. I guess it's a U-Boot-Problem. I'm able to boot from NFS, as long as i get the kernel from NAND.
11  Linux Stuff / Kernel / Re: Problems reflashing UImage, bad blocks on: June 07, 2009, 02:18:57 PM
if it's not unmounted cleanly, it has to scan every block to see whether there's data in it. Which takes ages.

Jffs has to read in the whole flash even if the shutdown was clean. Since there's no defined point to look if it was unmounted cleanly (like a journal at a fixed position) that's the only way to find out if everything is okay. It's also stated here: http://www.linux-mtd.infradead.org/doc/ubifs.html#L_scalability
12  Hardware and U-Boot firmware / Hardware / Re: SheevaPlug v2 - Hardware Requests on: June 07, 2009, 12:50:08 PM
For me: just (E-)SATA, and if possible more USB-ports. As mentioned above, other functionality like VGA is available in other products. So i'd suggest to add nothing that would increase the cost of the plug significantly. But exposing the SATA-interface should be almost for free.

And, if it's possible for the same price at a later time, i wouldn't complain if it'd have 1GB of RAM. But it's not necessary!
13  Hardware and U-Boot firmware / Hardware / Re: Nand flash and "bad" blocks on: June 07, 2009, 11:56:47 AM
Hello plugit and superpat,

i've had a lot of time between ordering and delivery of my sheeva to read a lot about NAND-flashes too. I want to address two aspects:

1.) The problem with half-written blocks isn't really a problem. When a jffs2 filesystem is mounted, every block is checked, the ECC-error will be detected. Data which is okay, will be copied to another eraseblock. After that the block isn't marked as bad immediately, but checked up to two times [1]. So you won't "loose" your block, just because of a power-failure. UBIFS/UBI have similar precautions [2].

Also the behavior visible to the user will be the same as with any other (journalled) filesystem on a normal harddisk: if you power down, while stuff isn't still written to the device, it will be lost, but the filesystem will be in a consistent state (at least with UBIFS, i don't know for sure with jffs2). If you want atomic transactions, you can get them by using the standard POSIX-procedure: write to a new file, flush, fsync, rename. Again the same as with ext3/xfs/etc...

2.) Regarding atime and journalled file-systems on FTL-devices (this doesn't matter for the sheeva-nand of course):
While i'd turn off atime if i don't need it, simply because it's a waste of write-cycles i don't really see a problem, as long as your FTL is really good (like in intel's X25-E/M). Suppose the journal is committed every 5 seconds, and every time one page, say 2KiB, is written because of that. That would be 12GiB per year, which would be 0.15 erase-cycles on an intel 80GB-SSD or 24 cycles on a 512MB device. Nothing to really worry about. Of course, if the wear levelling is not done well, that calculation won't work.

On raw nand that's not a problem at all. If you're using UBIFS you get your journal for free, because UBIFS writes a full journal (with data) and later updates the filesystem-tree to point directly to that data in the (former) journal. The acual journal just moves forward. So data isn't written twice because of the journal. It's similar to a log-structured filesystem [3].

[1] "How is ensured, that data is written to flash?" and "How does JFFS2 handle a block going bad in NAND flash?" at http://www.linux-mtd.infradead.org/faq/jffs2.html
[2] http://www.linux-mtd.infradead.org/faq/ubifs.html#L_powercut
[3] http://en.wikipedia.org/wiki/Log-structured_filesystem
14  Hardware and U-Boot firmware / U-Boot stuff / Upgraded to open u-boot -> tftp not working anymore. on: June 07, 2009, 11:14:01 AM
I've upgraded U-boot according to this guide: http://plugcomputer.org/plugwiki/index.php/Das_U-boot_plug_support
I can boot from flash, but tftp is not working anymore. Also ping doesn't do anything (but i didn't try that with the old u-boot, so i don't know, what it's supposed to do). The IP-addresses are correct. Any idea?

Code:
U-Boot 2009.06-rc2-02174-ge5f7c16 (Jun 07 2009 - 11:48:25)
Marvell-Sheevaplug

SoC:   Kirkwood 88F6281_A0
DRAM:  512 MB
NAND:  512 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
Marvell>> printenv
bootdelay=3
baudrate=115200
x_bootargs=console=ttyS0,115200 mtdparts=orion_nand:512k(uboot),1m@4m(psm),3m@1m(kernel),13m@5m(rootfs) rw
x_bootcmd_kernel=nand read 0x100000 0x6400000 0x300000
x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2
ethaddr=00:50:43:6c:e8:fd
ethact=egiga0
ipaddr=10.10.10.20
serverip=10.10.10.4
console=console=ttyS0,115200 mtdparts=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)
bootcmd=nand read.e 0x800000 0x100000 0x400000; setenv bootargs $(console) $(bootargs_root); bootm 0x800000
bootargs_root=ubi.mtd=2 rootfstype=ubifs root=ubi0:rootfs
stdin=serial
stdout=serial
stderr=serial

Environment size: 633/131068 bytes
Marvell>> tftpboot 0x2000000 uImage
Using egiga0 device
TFTP from server 10.10.10.4; our IP address is 10.10.10.20
Filename 'uImage'.
Load address: 0x2000000
Loading: *

It stops right here ... print's one '*' and nothing more ...
15  General Category / General Discussion / Re: Received yours yet? on: June 07, 2009, 03:34:02 AM
Got mine on friday (ordered april 28th). Since friday i spend every free minute with my sheeva  Smiley . I compiled the current orion-kernel, made a network-install of ubuntu, switched over from jffs2 to ubifs (that really paid off, it's sooo much faster) and installed a new u-boot. wasn't all too easy, but now everything is running like i want it  Grin
Pages: [1]