warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
persmule has quit [Remote host closed the connection]
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
julia has joined #u-boot
julia is now known as Guest5389
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
prabhakalad has quit [Ping timeout: 254 seconds]
prabhakalad has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
m2 has quit [Quit: WeeChat 4.9.4]
m2 has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
goliath has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest5389 has quit [Ping timeout: 260 seconds]
julia has joined #u-boot
qschulz has quit [Remote host closed the connection]
qschulz has joined #u-boot
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<user890104>
how much should the dfu area be? half of ram, u-boot size minus malloc size minus the usb buffer? any rune of thumb? I'm adding support for a series of devices, which have 32 or 64 MB of SDRAM
<user890104>
s/rune/rule/
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlech has quit [Ping timeout: 260 seconds]
teknix has quit [Remote host closed the connection]
dlech has joined #u-boot
warpme_ has joined #u-boot
teknix has joined #u-boot
<user890104>
also config SYS_MALLOC_LEN is 4M by default, but config SYS_DFU_DATA_BUF_SIZE is 8M by default, and it's memalign()ed, how is this supposed to work?
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<marex>
user890104: default is 8 MiB, which is reasonable. Make sure your malloc area is bigger than that
jfsimon1981 has quit [Remote host closed the connection]
warpme_ has joined #u-boot
<user890104>
marex: thanks, but isn't the default configuration creating a contradiction with the current values?
<user890104>
I'm looking for a suitable memory layout to maximize the final image area, so I can boot a linux kernel with a large initramfs, as I don't have a nand driver yet
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Stat_headcrabbed has joined #u-boot
Stat_headcrabbed has quit [Quit: Stat_headcrabbed]
mmu_man has joined #u-boot
warpme_ has joined #u-boot
<marex>
user890104: iirc SYS_DFU_DATA_BUF_SIZE is only a buffer for the DFU, you can download more than that amount of data
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Stat_headcrabbed has joined #u-boot
Stat_headcrabbed has quit [Remote host closed the connection]
Stat_headcrabbed has joined #u-boot
warpme_ has joined #u-boot
Stat_headcrabbed has quit [Quit: Stat_headcrabbed]
Stat_headcrabbed has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<user890104>
marex: I am aware of this, but I'm making a point that with the default Kconfig values and no env overrides, this builds a non-working USB DFU as it can't allocate dfu_buf
slobodan has joined #u-boot
<marex>
user890104: because the malloc area is too small ? On which board does that happen ?
warpme_ has joined #u-boot
<user890104>
marex: yes. I get "dfu_get_buf: Could not memalign 0x800000 bytes". I'm adding support for a couple new SoCs and boards: https://freemyipod.org/wiki/U-Boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
<marex>
user890104: them just configure the malloc area as a bit bigger
<marex>
CONFIG_SYS_MALLOC_LEN=0x1000000 or some such
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<user890104>
marex: I understand how to fix it for the boards I'm working on, my question was more general - is it expected that the default Kconfig produces a binary with all features, including USB DFU working out of the box? if so, then this needs to be fixed. also the README is out of date, stating that SYS_DFU_MAX_FILE_SIZE is 4 MiB by default, but it's not
<user890104>
I'm going to submit my boards as a patch in the neat future, but I'm looking at solving general issues first, if this is considered an issue. I don't know what the policy is.
<user890104>
s/neat/near/
warpme_ has joined #u-boot
niska has quit [Ping timeout: 260 seconds]
<marex>
user890104: what does "default Kconfig" refer to ? Your target defconfig should produce working result, randconfig should at least build
<user890104>
marex: I mean applying a defconfig which has as few overrides as possible
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<user890104>
only for what needs to be changed in order to make u-boot compile and run on the board
<marex>
user890104: one of those defconfig entries will likely be suitable malloc area size then
<marex>
some sort of minimal defconfig will likely not be workable, you will need a bunch of config options in it
niska has joined #u-boot
warpme_ has joined #u-boot
<user890104>
ok, I won't submit a SYS_DFU_DATA_BUF_SIZE/SYS_MALLOC_LEN default option change then
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
mmu_man has quit [Ping timeout: 252 seconds]
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
mmu_man has joined #u-boot
K900 has quit [Remote host closed the connection]
K900 has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
walter has quit [Quit: Konversation terminated!]
walter has joined #u-boot
walter has joined #u-boot
walter has quit [Changing host]
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Stat_headcrabbed has quit [Quit: Stat_headcrabbed]
warpme_ has joined #u-boot
persmule has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Stat_headcrabbed has joined #u-boot
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dsimic has quit [Ping timeout: 244 seconds]
dsimic has joined #u-boot
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
___nick___ has quit [Ping timeout: 248 seconds]
___nick___ has joined #u-boot
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Stat_headcrabbed has quit [Quit: Stat_headcrabbed]
Stat_headcrabbed has joined #u-boot
warpme_ has joined #u-boot
Stat_headcrabed1 has joined #u-boot
Stat_headcrabbed has quit [Ping timeout: 256 seconds]
Stat_headcrabed1 is now known as Stat_headcrabbed
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pgreco_ has joined #u-boot
pgreco has quit [Ping timeout: 252 seconds]
warpme_ has joined #u-boot
rainbyte has quit [Read error: Connection reset by peer]
rainbyte has joined #u-boot
pgreco has joined #u-boot
pgreco_ has quit [Ping timeout: 264 seconds]
walter has quit [Quit: Konversation terminated!]
walter has joined #u-boot
walter has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wastedman82 has quit [Quit: Eggy BNC]
wastedman82 has joined #u-boot
walter has quit [Quit: Konversation terminated!]
walter has joined #u-boot
warpme_ has joined #u-boot
walter has quit [Quit: Konversation terminated!]
walter has joined #u-boot
walter has quit [Changing host]
walter has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
walter has quit [Quit: Konversation terminated!]
walter has joined #u-boot
walter has joined #u-boot
<shadow>
I will need help signing up for the new mailing list, it does not appear to be working the past weeks for the normal sign-up procedure
walter has quit [Ping timeout: 264 seconds]
warpme_ has joined #u-boot
walter has joined #u-boot
walter has joined #u-boot
walter has quit [Changing host]
memset has quit [Remote host closed the connection]
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Stat_headcrabbed has quit [Quit: Stat_headcrabbed]
persmule_ has joined #u-boot
persmule has quit [Remote host closed the connection]
mmu_man has quit [Ping timeout: 264 seconds]
warpme_ has joined #u-boot
memset has joined #u-boot
mmu_man has joined #u-boot
alexxy has quit [Remote host closed the connection]
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alexxy has joined #u-boot
<marex>
user890104: you could add check into dfu_get_buf(), if the buffer is bigger than malloc area, warn user about it ... this can even be done as a macro that fails the build, some #if CONFIG_SYS_MALLOC_LEN < CONFIG_SYS_DFU_DATA_BUF_SIZE #error Malloc area too small for DFU #endif
ikarso has quit [Quit: Connection closed for inactivity]
warpme_ has joined #u-boot
<user890104>
marex: the macro sounds good, where should I put it?
alexxy has quit [Ping timeout: 264 seconds]
___nick___ has quit [Ping timeout: 264 seconds]
<marex>
start of drivers/dfu/dfu.c looks reasonable
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ikarso has joined #u-boot
wastedman82 has quit [Quit: Eggy BNC]
warpme_ has joined #u-boot
wastedman82 has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
persmule_ has quit [Ping timeout: 252 seconds]
persmule_ has joined #u-boot
goliath has quit [Quit: SIGSEGV]
prabhakalad has quit [Ping timeout: 260 seconds]
walter has quit [Quit: Konversation terminated!]
walter has joined #u-boot
walter has joined #u-boot
walter has quit [Changing host]
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
warpme_ has joined #u-boot
warpme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]