summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/defconfig'Sascha Hauer2012-07-029-4/+11
|\
| * ARM at91sam9m10g45ek: Enable lzo decompressionSascha Hauer2012-06-291-1/+1
| | | | | | | | | | | | | | This results in a binary size reduction since now the default environment gets compressed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM defconfigs: Use TLSF malloc on defconfigs getting too bigSascha Hauer2012-06-298-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several boards are getting bigger than their specified maximum binary size of 256Kb. Enable the TLSF allocator for them which is smaller than the original dlmalloc. The changed defconfigs are: eukrea_cpuimx25_defconfig eukrea_cpuimx35_defconfig eukrea_cpuimx51_defconfig usb_a9260_defconfig usb_a9263_128mib_defconfig usb_a9263_defconfig usb_a9g20_128mib_defconfig usb_a9g20_defconfig Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/defenv-2'Sascha Hauer2012-07-026-19/+20
|\ \
| * | defaultenv-2 ifup: create network up state file for dhcpSascha Hauer2012-06-301-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | We store the 'up' status of a network device in /tmp/network/$interface. Create this file for dhcp aswell to prevent doing dhcp requests each time ifup is called. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | defaultenv-2: remove global.tftp.pathSascha Hauer2012-06-304-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This variable is set in /env/init/general and then used in /env/boot/* which is a bit confusing. Also it does not necessarily have to be a tftp path (could be nfs aswell). Use a local variable in the scripts using it instead to make the meaning a bit more clear. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | defaultenv-2: mount tftp server specified in $eth0.serveripSascha Hauer2012-06-302-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is always the tftp server specified in /env/network/eth0, this could be either the one returned from a dhcp request or a manually specified one, but in the end it's always the right one. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | defaultenv-2 ifup: Always overwrite eth0.serveripSascha Hauer2012-06-301-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | if serverip is specified, also overwrite eth0.serverip in dhcp case. This makes it possible to specify a different serverip when the dhcp server returns the wrong ip (because the DHCP might be a DSL router which does not provide tftp). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/basename-dirname'Sascha Hauer2012-07-024-0/+110
|\ \ \
| * | | Add dirname commandSascha Hauer2012-06-303-0/+55
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Add basename commandSascha Hauer2012-06-303-0/+55
| |/ / | | | | | | | | | | | | | | | | | | The basename command allows to set an environment variable with the basename of a path. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/64bit'Sascha Hauer2012-07-0253-215/+290
|\ \ \
| * | | partitions: Make 64bit capableSascha Hauer2012-06-304-32/+3
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | memory commands: Make 64bit capableSascha Hauer2012-06-301-20/+19
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | make cdev 64bit capableSascha Hauer2012-06-306-14/+15
| | | | | | | | | | | | | | | | | | | | | | | | Next step to 64bit support: Make cdev size a 64bit type. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | make st_size in struct stat 64 bitSascha Hauer2012-06-302-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | make memory display 64bit capableSascha Hauer2012-06-302-3/+3
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | make parse_area_spec arguments loff_tSascha Hauer2012-06-306-14/+14
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | introduce strtoull_suffix functionSascha Hauer2012-06-303-4/+12
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | use loff_t for file offsetsSascha Hauer2012-06-3029-87/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a first step for 64bit file support: Make the file sizes/offsets 64bit. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mtd: fix arguments to bad block ioctlsSascha Hauer2012-06-303-15/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the Kernel the mtd ioctls expect a pointer to the offset, whereas barebox interprets the pointer itself as an offset. Since we want to add 64bit support for file sizes a pointer may not be sufficient, so align with the kernel and convert it to a pointer to the offset. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | blackfin: Add missing fls includeSascha Hauer2012-06-281-0/+3
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | x86: Add missing ffs and fls includeSascha Hauer2012-06-281-1/+6
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | nios2: Add missing ffs and fls includeSascha Hauer2012-06-281-0/+5
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mips: Add missing ffs and fls includeSascha Hauer2012-06-281-0/+3
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | openrisc: link to libgccSascha Hauer2012-06-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To get symbols like __ashrdi3. Franck started generating these symbols from gcc assembly, which seems to be the cleaner approach. The simpler approach for now to get additional symbols is to link in libgcc, which is the same as the kernel does. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Cc: Franck Jullien <franck.jullien@gmail.com>
| * | | blackfin: add __ashrdi3Sascha Hauer2012-06-282-0/+37
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Change byte order detection mechanism to kernel styleSascha Hauer2012-06-287-24/+49
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Linux Kernel defines only one of __LITTLE_ENDIAN and __BIG_ENDIAN. Endianess can then be tested with #ifdef __xx_ENDIAN. Userspace always defined both __LITTLE_ENDIAN and __BIG_ENDIAN and byteorder can then be tested with #if __BYTE_ORDER == __xx_ENDIAN. As we tend to use a lot of Kernel code in barebox we switch to use the kernel way of determing the byte order. As this always causes a lot of confusion add a check to include/common.h to make sure only one of __LITTLE_ENDIAN and __BIG_ENDIAN is defined. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Release v2012.07.0v2012.07.0Sascha Hauer2012-07-021-1/+1
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ehci: Fix resource sizeSascha Hauer2012-07-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now have a resource size for the ehci hccr register space. This was assumed to be 0x40 in size. On OMAP though it is only 0x10 and then the hccr resource conflicts with the hcor resource which results in a non working ehci port on beagle and panda boards. This patch adds a nonintrusive workaround, it limits the hccr resource to 0x10, which then also works on OMAP. Later we should drop the multiple resources for the ehci port and make the resource as specified in the datasheets. This is broken since: commit 08845e41fba2b16dd3050b6b910c615e1bb8e57c Author: Sascha Hauer <s.hauer@pengutronix.de> Date: Wed May 23 12:54:24 2012 +0200 usb ehci: Add resource sizes add_usb_ehci_device registers resources with size 0. Fix this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | commands: uncompress: fix descriptionAlexander Shiyan2012-06-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Command "uncompress" can handle not only with LZO-format, so we just changed description for command. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Unused files removedAlexander Shiyan2012-06-302-3/+0
|/ / | | | | | | | | | | | | | | Files "modules.builtin" probably have been copied from kernel tree. This files not used by barebox and can be removed safely. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / drivers/base: bail out if request_iomem_region failsSascha Hauer2012-06-271-0/+2
|/ | | | | | | When request_iomem_region fails we have to bail out instead of dereferencing res->start. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'pu/sandbox-fixes'Sascha Hauer2012-06-254-2/+17
|\
| * print out resource_size_t correctlySascha Hauer2012-06-253-2/+10
| | | | | | | | | | | | | | resource_size_t can be 32bit or 64bit depending on the architecture. Add a define for it to be able to printf a resource_size_t correctly Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * sandbox: fix 64bit buildSascha Hauer2012-06-251-0/+7
| | | | | | | | | | | | | | | | On x86_64 we need CONFIG_PHYS_ADDR_T_64BIT to make the resource sizes 64bit. The kernel has this as a Kconfig variable, but on barebox sandbox will build with whatever compiler we find, so we can't put it into Kconfig. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | x86 linux16 command: Add missing includeSascha Hauer2012-06-251-0/+1
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs tftp: Fix short file transfersSascha Hauer2012-06-241-1/+2
| | | | | | | | | With files smaller than the tftp block size the whole transfer is done in tftp_do_open already. In this case we are in STATE_DONE, but there is no error. Set priv->err to 0 and check for it to be able to transfer small files. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* openrisc: fix build due to redefined phys_size_tSascha Hauer2012-06-211-2/+0
| | | | | | | | | | | | | | | | | | | | We already have a phys_size_t since: commit 2f05b6925676e5f3263e0d51ed2f0a92201400d8 Author: Renaud Barbier <renaud.barbier@ge.com> Date: Fri May 11 11:58:13 2012 +0100 linux/types.h: define phys_size_t Add this definition in preparation for the introduction of the mpc85xx support. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Fix build due to redefinition of this type. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* blackfin: Fix build due to missing __raw_* io accessorsSascha Hauer2012-06-211-0/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM qil-a9260: Fix PARTITION_FIXED compilationSascha Hauer2012-06-071-4/+4
| | | | | | is now DEVFS_PARTITION_FIXED Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Fix SHA224 to produce 28 bytes of hash (instead of 32).Krzysztof Halasa2012-06-071-1/+2
| | | | | | | This fixes a panic in sha224sum. Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Fix a panic in crypto hash calculations due to uninitialized variable.Krzysztof Halasa2012-06-071-1/+1
| | | | | Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Fix sha224sum panic by registering SHA224 hash name.Krzysztof Halasa2012-06-071-0/+1
| | | | | | | | barebox:/ sha224sum BUG: failure at commands/digest.c:40/do_digest()! Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs: limit flash erase and protect to the partiton boundaryJohannes Stezenbach2012-06-071-10/+8
| | | | | | | | | | | | | Passing a too large size or offset to erase could affect flash outside the partition boundary. Addresses for SPI flash wrap around, thus giving a count + offset going past the end of the flash would wrap around and erase flash at offset 0. Add the same check for protect. Signed-off-by: Johannes Stezenbach <js@sig21.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* devfs: don't erase past the end of the partitionJohannes Stezenbach2012-06-071-0/+3
| | | | | | | | "erase /dev/myflash0.mypart 0xf0000+0xf0000" could erase past the end of the partition. Signed-off-by: Johannes Stezenbach <js@sig21.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* m25p80: progressbar tweakJohannes Stezenbach2012-06-071-2/+2
| | | | | | | | Show progressbar even when erasing just a single sector, otherwise it looks as if erase didn't do anything. Signed-off-by: Johannes Stezenbach <js@sig21.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* m25p80: allow erase to be interruptedJohannes Stezenbach2012-06-071-0/+2
| | | | | | | Check for Ctrl-C before erasing each sector. Signed-off-by: Johannes Stezenbach <js@sig21.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* m25p80: prevent endless loop in eraseJohannes Stezenbach2012-06-071-0/+2
| | | | | | | | | "erase /dev/myflash0 0+1" erased the whole flash, similar for other value of count if you guessed the erae block size wrong. Signed-off-by: Johannes Stezenbach <js@sig21.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'next'Sascha Hauer2012-06-06323-1073/+10671
|\