<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm63xx/u-boot/fs/cbfs, branch master</title>
<subtitle>Broadcom-s U-Boot</subtitle>
<id>https://git.openwrt.org/project/bcm63xx/u-boot/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/bcm63xx/u-boot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/'/>
<updated>2018-12-31T01:42:41Z</updated>
<entry>
<title>fs: cbfs: Fix out of bound access during CBFS walking through</title>
<updated>2018-12-31T01:42:41Z</updated>
<author>
<name>Bin Meng</name>
</author>
<published>2018-12-22T09:55:49Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=d94bf13c85c2773c8782bc7d6b4ac0190b5d489d'/>
<id>urn:sha1:d94bf13c85c2773c8782bc7d6b4ac0190b5d489d</id>
<content type='text'>
The call to file_cbfs_fill_cache() is given with the parameter
'start' pointing to the offset by the CBFS base address, but
with the parameter 'size' that equals to the whole CBFS size.
During CBFS walking through, it checks files one by one and
after it pass over the end of the CBFS which is 4GiB boundary
it tries to check files from address 0 and so on, until the
overall size the codes checked hits to the given 'size'.

Fix this by passing 'start' pointing to the CBFS base address.

Signed-off-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>fs: cbfs: remove wrong header validation</title>
<updated>2018-12-31T01:42:41Z</updated>
<author>
<name>Christian Gmeiner</name>
</author>
<published>2018-12-22T09:55:48Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=9914c73261b198bf26df70cce8aa098f204cd763'/>
<id>urn:sha1:9914c73261b198bf26df70cce8aa098f204cd763</id>
<content type='text'>
cbfs_fileheader.len indicates the content size of the file in the
cbfs, and it has nothing to do with cbfs_fileheader.offset which
is the starting address of the file in the cbfs.

Remove such check in file_cbfs_next_file(). Before this change
'cbfsinit' failed with 'Bad CBFS file'. After this change all cbfs
commands are working as expected.

Signed-off-by: Christian Gmeiner &lt;christian.gmeiner@gmail.com&gt;
[bmeng: keep the necessary header sanity check]
Signed-off-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>SPDX: Convert all of our single license tags to Linux Kernel style</title>
<updated>2018-05-07T13:34:12Z</updated>
<author>
<name>Tom Rini</name>
</author>
<published>2018-05-06T21:58:06Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=83d290c56fab2d38cd1ab4c4cc7099559c1d5046'/>
<id>urn:sha1:83d290c56fab2d38cd1ab4c4cc7099559c1d5046</id>
<content type='text'>
When U-Boot started using SPDX tags we were among the early adopters and
there weren't a lot of other examples to borrow from.  So we picked the
area of the file that usually had a full license text and replaced it
with an appropriate SPDX-License-Identifier: entry.  Since then, the
Linux Kernel has adopted SPDX tags and they place it as the very first
line in a file (except where shebangs are used, then it's second line)
and with slightly different comment styles than us.

In part due to community overlap, in part due to better tag visibility
and in part for other minor reasons, switch over to that style.

This commit changes all instances where we have a single declared
license in the tag as both the before and after are identical in tag
contents.  There's also a few places where I found we did not have a tag
and have introduced one.

Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>fs: cbfs: fix locating the cbfs header</title>
<updated>2018-03-31T08:00:03Z</updated>
<author>
<name>Andre Heider</name>
</author>
<published>2018-02-15T06:40:11Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=44683170f818ecaf914ea4c77d35021f60e38b04'/>
<id>urn:sha1:44683170f818ecaf914ea4c77d35021f60e38b04</id>
<content type='text'>
The value at the end of the rom is not a pointer, it is an offset
relative to the end of rom.

Signed-off-by: Andre Heider &lt;a.heider@gmail.com&gt;
</content>
</entry>
<entry>
<title>fs: Kconfig: Add a separate config for FS_CBFS</title>
<updated>2017-04-30T17:40:57Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2017-04-27T04:27:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=deb959991528bee05079426c189f538ad3850337'/>
<id>urn:sha1:deb959991528bee05079426c189f538ad3850337</id>
<content type='text'>
Rather than using CMD_CBFS for both the filesystem and its command, we
should have a separate option for each. This allows us to enable CBFS
support without the command, if desired, which reduces U-Boot's size
slightly.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
[trini: imply FS_CBFS on SYS_COREBOOT]
Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>cbfs: Fix incorrect CBFS file header size being used</title>
<updated>2016-08-16T03:44:09Z</updated>
<author>
<name>Yaroslav K</name>
</author>
<published>2016-08-09T03:32:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=cc7ed269341fb48b6453d013cc79ac15cb497f04'/>
<id>urn:sha1:cc7ed269341fb48b6453d013cc79ac15cb497f04</id>
<content type='text'>
This fixes incorrect filenames in cbfsls output.

Signed-off-by: Yaroslav K. &lt;yar444@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
[clean up checkpatch errors and warnings]
Signed-off-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
</content>
</entry>
<entry>
<title>fs: cbfs: Fix build of fs/cbfs/cbfs.c when building u-boot sandbox on x86 32-bit</title>
<updated>2016-06-19T13:57:09Z</updated>
<author>
<name>Guillaume GARDET</name>
</author>
<published>2016-06-17T09:45:37Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=7a77e909a22848f5d5820fae58c087b83e90bdbc'/>
<id>urn:sha1:7a77e909a22848f5d5820fae58c087b83e90bdbc</id>
<content type='text'>
Fix the following build errors when building sandbox on x86 32-bit:

	In file included from fs/cbfs/cbfs.c:8:0:
	include/malloc.h:364:7: error: conflicting types for 'memset'
	void* memset(void*, int, size_t);
	^
	In file included from include/compiler.h:123:0,
			from include/cbfs.h:10,
			from fs/cbfs/cbfs.c:7:
	include/linux/string.h:78:15: note: previous declaration of 'memset' was here
	extern void * memset(void *,int,__kernel_size_t);
		^
	In file included from fs/cbfs/cbfs.c:8:0:
	include/malloc.h:365:7: error: conflicting types for 'memcpy'
	void* memcpy(void*, const void*, size_t);
	^
	In file included from include/compiler.h:123:0,
			from include/cbfs.h:10,
			from fs/cbfs/cbfs.c:7:
	include/linux/string.h:81:15: note: previous declaration of 'memcpy' was here
	extern void * memcpy(void *,const void *,__kernel_size_t);
		^
	scripts/Makefile.build:280: recipe for target 'fs/cbfs/cbfs.o' failed

Signed-off-by: Guillaume GARDET &lt;guillaume.gardet@free.fr&gt;
Cc: Tom Rini &lt;trini@konsulko.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>fs: descend into sub directories when it is necessary</title>
<updated>2013-11-17T19:11:34Z</updated>
<author>
<name>Masahiro Yamada</name>
</author>
<published>2013-11-11T05:36:10Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=4678d742567e282d9e0f786441f59102e8d3553e'/>
<id>urn:sha1:4678d742567e282d9e0f786441f59102e8d3553e</id>
<content type='text'>
Signed-off-by: Masahiro Yamada &lt;yamada.m@jp.panasonic.com&gt;
</content>
</entry>
<entry>
<title>fs: convert makefiles to Kbuild style</title>
<updated>2013-10-31T17:26:01Z</updated>
<author>
<name>Masahiro Yamada</name>
</author>
<published>2013-10-17T08:34:58Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=35c792754c0feb894781e1eee6ab6b6624beb309'/>
<id>urn:sha1:35c792754c0feb894781e1eee6ab6b6624beb309</id>
<content type='text'>
Signed-off-by: Masahiro Yamada &lt;yamada.m@jp.panasonic.com&gt;
</content>
</entry>
<entry>
<title>Add GPL-2.0+ SPDX-License-Identifier to source files</title>
<updated>2013-07-24T13:44:38Z</updated>
<author>
<name>Wolfgang Denk</name>
</author>
<published>2013-07-08T07:37:19Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=1a4596601fd395f3afb8f82f3f840c5e00bdd57a'/>
<id>urn:sha1:1a4596601fd395f3afb8f82f3f840c5e00bdd57a</id>
<content type='text'>
Signed-off-by: Wolfgang Denk &lt;wd@denx.de&gt;
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini &lt;trini@ti.com&gt;
</content>
</entry>
</feed>
