{"action":"created","issue":{"url":"https://api.github.com/repos/pcengines/coreboot/issues/181","repository_url":"https://api.github.com/repos/pcengines/coreboot","labels_url":"https://api.github.com/repos/pcengines/coreboot/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/pcengines/coreboot/issues/181/comments","events_url":"https://api.github.com/repos/pcengines/coreboot/issues/181/events","html_url":"https://github.com/pcengines/coreboot/issues/181","id":332126811,"node_id":"MDU6SXNzdWUzMzIxMjY4MTE=","number":181,"title":"Changing boot-menu-wait breaks iPXE boot","user":{"login":"stapelberg","id":55506,"node_id":"MDQ6VXNlcjU1NTA2","avatar_url":"https://avatars2.githubusercontent.com/u/55506?v=4","gravatar_id":"","url":"https://api.github.com/users/stapelberg","html_url":"https://github.com/stapelberg","followers_url":"https://api.github.com/users/stapelberg/followers","following_url":"https://api.github.com/users/stapelberg/following{/other_user}","gists_url":"https://api.github.com/users/stapelberg/gists{/gist_id}","starred_url":"https://api.github.com/users/stapelberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stapelberg/subscriptions","organizations_url":"https://api.github.com/users/stapelberg/orgs","repos_url":"https://api.github.com/users/stapelberg/repos","events_url":"https://api.github.com/users/stapelberg/events{/privacy}","received_events_url":"https://api.github.com/users/stapelberg/received_events","type":"User","site_admin":false},"labels":[{"id":952672036,"node_id":"MDU6TGFiZWw5NTI2NzIwMzY=","url":"https://api.github.com/repos/pcengines/coreboot/labels/v4.8.0.2","name":"v4.8.0.2","color":"40ce6f","default":false}],"state":"open","locked":false,"assignee":{"login":"miczyg1","id":30656491,"node_id":"MDQ6VXNlcjMwNjU2NDkx","avatar_url":"https://avatars0.githubusercontent.com/u/30656491?v=4","gravatar_id":"","url":"https://api.github.com/users/miczyg1","html_url":"https://github.com/miczyg1","followers_url":"https://api.github.com/users/miczyg1/followers","following_url":"https://api.github.com/users/miczyg1/following{/other_user}","gists_url":"https://api.github.com/users/miczyg1/gists{/gist_id}","starred_url":"https://api.github.com/users/miczyg1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miczyg1/subscriptions","organizations_url":"https://api.github.com/users/miczyg1/orgs","repos_url":"https://api.github.com/users/miczyg1/repos","events_url":"https://api.github.com/users/miczyg1/events{/privacy}","received_events_url":"https://api.github.com/users/miczyg1/received_events","type":"User","site_admin":false},"assignees":[{"login":"miczyg1","id":30656491,"node_id":"MDQ6VXNlcjMwNjU2NDkx","avatar_url":"https://avatars0.githubusercontent.com/u/30656491?v=4","gravatar_id":"","url":"https://api.github.com/users/miczyg1","html_url":"https://github.com/miczyg1","followers_url":"https://api.github.com/users/miczyg1/followers","following_url":"https://api.github.com/users/miczyg1/following{/other_user}","gists_url":"https://api.github.com/users/miczyg1/gists{/gist_id}","starred_url":"https://api.github.com/users/miczyg1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miczyg1/subscriptions","organizations_url":"https://api.github.com/users/miczyg1/orgs","repos_url":"https://api.github.com/users/miczyg1/repos","events_url":"https://api.github.com/users/miczyg1/events{/privacy}","received_events_url":"https://api.github.com/users/miczyg1/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-06-13T19:13:02Z","updated_at":"2018-06-14T07:15:29Z","closed_at":null,"author_association":"NONE","body":"I did the following steps:\r\n```\r\n% git clone https://github.com/pcengines/pce-fw-builder.git\r\n% ./build.sh release v4.6.9 apu2\r\n% ./build.sh dev-build $PWD/release/coreboot apu2\r\n% cp release/coreboot/build/coreboot.rom /media/sdc1/\r\n```\r\n\r\nOn the apu2c4, I flashed the image using `flashrom -w coreboot.rom -p internal`. So far, everything works fine: the apu2c4 boots my custom-built coreboot and PXE-boots just fine.\r\n\r\nThen, I go back and decrease the menu wait time from 6s to 2s:\r\n\r\n```\r\n% echo -n \"\\xd0\\x07\\x0\\x0\\x0\\x0\\x0\\x0\" > ./release/coreboot/src/mainboard/pcengines/apu2/boot-menu-wait\r\n% ./build.sh dev-build $PWD/release/coreboot apu2\r\n% cp release/coreboot/build/coreboot.rom /media/sdc1/\r\n```\r\n\r\nAfter flashing the image like above, PXE boot no longer works: no DHCP packets are received on my PXE server.\r\n\r\nIs this to be expected? I was trying to eliminate delays in the boot sequence, since I’d like to PXE-boot my machine as quickly as possible for quick recovery during development."},"comment":{"url":"https://api.github.com/repos/pcengines/coreboot/issues/comments/397195931","html_url":"https://github.com/pcengines/coreboot/issues/181#issuecomment-397195931","issue_url":"https://api.github.com/repos/pcengines/coreboot/issues/181","id":397195931,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzE5NTkzMQ==","user":{"login":"miczyg1","id":30656491,"node_id":"MDQ6VXNlcjMwNjU2NDkx","avatar_url":"https://avatars0.githubusercontent.com/u/30656491?v=4","gravatar_id":"","url":"https://api.github.com/users/miczyg1","html_url":"https://github.com/miczyg1","followers_url":"https://api.github.com/users/miczyg1/followers","following_url":"https://api.github.com/users/miczyg1/following{/other_user}","gists_url":"https://api.github.com/users/miczyg1/gists{/gist_id}","starred_url":"https://api.github.com/users/miczyg1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miczyg1/subscriptions","organizations_url":"https://api.github.com/users/miczyg1/orgs","repos_url":"https://api.github.com/users/miczyg1/repos","events_url":"https://api.github.com/users/miczyg1/events{/privacy}","received_events_url":"https://api.github.com/users/miczyg1/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T07:15:28Z","updated_at":"2018-06-14T07:15:28Z","author_association":"NONE","body":"@stapelberg @pietrushnic have a look at the commands below:\r\n```\r\ncoreboot/build$ ./cbfstool coreboot.rom remove -n etc/boot-menu-wait\r\ncoreboot/build$ ./cbfstool coreboot.rom add-int -i 2000 -n etc/boot-menu-wait\r\ncoreboot/build$ ./cbfstool coreboot.rom extract -n etc/boot-menu-wait -f boot-menu-wait\r\n```\r\nline 1: remove the 6sec boot-menu-wait from image\r\nline 2: add 2sec boot-menu-wait to image\r\nline 3: extract 2sec boot-menu-wait file from image without removing it and save it as boot-menu-wait in current directory\r\n\r\nNow:\r\n```\r\ncoreboot/build$ hexdump boot-menu-wait \r\n0000000 07d0 0000 0000 0000                    \r\n0000008\r\ncoreboot/build$ hexdump ../src/mainboard/pcengines/apu2/boot-menu-wait \r\n0000000 1770 0000 0000 0000                    \r\n0000008\r\ncoreboot/build$ echo -n \"\\xd0\\x07\\x0\\x0\\x0\\x0\\x0\\x0\" > custom-boot-menu-wait\r\ncoreboot/build$ hexdump custom-boot-menu-wait\r\n0000000 785c 3064 785c 3730 785c 5c30 3078 785c\r\n0000010 5c30 3078 785c 5c30 3078               \r\n000001a\r\n```\r\n07d0 -> 2000 decimal (time in milisec)\r\n1770 -> 6000 decimal\r\n785c 3064 785c 3730 785c 5c30 3078 785c 5c30 3078 785c 5c30 3078  -> ???\r\n\r\nSee the difference? File created by echo contains garbage. However  i was able to PXE boot Debian with stable kernel 4.14.33 using each of the three files.\r\n\r\n@stapelberg did You try official release binaries? If there is no problem with them, it is probably some small mistake in Your build flow.\r\n\r\nWhen modifying runtime config please use cbfstool, much safer approach. This [file](https://github.com/pcengines/seabios/blob/apu_support/docs/Runtime_config.md) may also interest You."}}
{"actor":{"display_login":"miczyg1"}}