change at and log buf to static allocate, change mailbox section to .mailbox