{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/3758","repository_url":"https://api.github.com/repos/ARMmbed/mbed-os","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/3758/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/3758/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/3758/events","html_url":"https://github.com/ARMmbed/mbed-os/pull/3758","id":207227068,"number":3758,"title":"Add Realtek RTL8195A to Mbed os 5.3","user":{"login":"Archcady","id":25738273,"avatar_url":"https://avatars.githubusercontent.com/u/25738273?v=3","gravatar_id":"","url":"https://api.github.com/users/Archcady","html_url":"https://github.com/Archcady","followers_url":"https://api.github.com/users/Archcady/followers","following_url":"https://api.github.com/users/Archcady/following{/other_user}","gists_url":"https://api.github.com/users/Archcady/gists{/gist_id}","starred_url":"https://api.github.com/users/Archcady/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Archcady/subscriptions","organizations_url":"https://api.github.com/users/Archcady/orgs","repos_url":"https://api.github.com/users/Archcady/repos","events_url":"https://api.github.com/users/Archcady/events{/privacy}","received_events_url":"https://api.github.com/users/Archcady/received_events","type":"User","site_admin":false},"labels":[{"id":144902129,"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/needs:%20work","name":"needs: work","color":"fbca04","default":false},{"id":450730565,"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/Scope:%20new-target","name":"Scope: new-target","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":29,"created_at":"2017-02-13T14:03:38Z","updated_at":"2017-02-27T11:13:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/3758","html_url":"https://github.com/ARMmbed/mbed-os/pull/3758","diff_url":"https://github.com/ARMmbed/mbed-os/pull/3758.diff","patch_url":"https://github.com/ARMmbed/mbed-os/pull/3758.patch"},"body":"## Description\r\nAdd Realtek RTL8195A to Mbed os 5.3\r\n\r\n\r\n## Status\r\nIN DEVELOPMENT\r\nGreentea test\r\nARMCC: \r\nmbedgt: test suite results: 1 FAIL / 47 OK\r\nmbedgt: test case results: 164 OK\r\n\r\nGCC:\r\nmbedgt: test suite results: 48 OK\r\nmbedgt: test case results: 164 OK\r\n\r\nIAR:\r\nmbedgt: test suite results: 1 FAIL / 47 OK\r\nmbedgt: test case results: 164 OK\r\n\r\n## Todos\r\n- [ ] Debug Ticker drifting issue\r\n- [ ] Tests\r\n- [ ] Documentation\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments/282692820","html_url":"https://github.com/ARMmbed/mbed-os/pull/3758#issuecomment-282692820","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/3758","id":282692820,"user":{"login":"bulislaw","id":107253,"avatar_url":"https://avatars.githubusercontent.com/u/107253?v=3","gravatar_id":"","url":"https://api.github.com/users/bulislaw","html_url":"https://github.com/bulislaw","followers_url":"https://api.github.com/users/bulislaw/followers","following_url":"https://api.github.com/users/bulislaw/following{/other_user}","gists_url":"https://api.github.com/users/bulislaw/gists{/gist_id}","starred_url":"https://api.github.com/users/bulislaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bulislaw/subscriptions","organizations_url":"https://api.github.com/users/bulislaw/orgs","repos_url":"https://api.github.com/users/bulislaw/repos","events_url":"https://api.github.com/users/bulislaw/events{/privacy}","received_events_url":"https://api.github.com/users/bulislaw/received_events","type":"User","site_admin":false},"created_at":"2017-02-27T11:13:51Z","updated_at":"2017-02-27T11:13:51Z","body":"@Archcady I was trying to run WiFi example on Ameba ( https://github.com/ARMmbed/mbed-os-example-wifi/tree/ameba ), I quickly hacked the example to support Ameba WiFi interface. It compiles (I had to do some changes for it to compile) but resulting binary has around 250M! That's using GCC. Could you try to reproduce it and fix the issue?\r\n\r\nmbed OS is case sensitive: `features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/target_realtek/Lwipopts_conf.h` has to be renamed to `features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_Realtek/lwipopts_conf.h`\r\n\r\nI had to make this change, because Ameba code is trying to use this static symbol. That can't stay like this, you can't use symbols defined as static in different files and my hack is not a solution just something to make it compile for now. That'll need a proper fix on your side.\r\n```\r\ndiff --cc features/FEATURE_LWIP/lwip-interface/lwip_stack.c\r\nindex eecdc0c8a,eecdc0c8a..1254dbf00\r\n--- a/features/FEATURE_LWIP/lwip-interface/lwip_stack.c\r\n+++ b/features/FEATURE_LWIP/lwip-interface/lwip_stack.c\r\n@@@ -102,7 -102,7 +102,7 @@@ static void mbed_lwip_socket_callback(s\r\n  \r\n  \r\n  /* TCP/IP and Network Interface Initialisation */\r\n--static struct netif lwip_netif;\r\n++struct netif lwip_netif;\r\n  static bool lwip_dhcp = false;\r\n  static char lwip_mac_address[NSAPI_MAC_SIZE];\r\n```\r\n\r\n"}}
{"actor":{"display_login":"bulislaw"}}